From 1ce9e00f8b449be9bcf34d16fadaacf074a16362 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 19 Apr 2008 22:29:10 +0000 Subject: rename *.llx -> *.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49970 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/CBackend/2003-06-28-LinkOnceGlobalVars.ll | 3 +++ .../CodeGen/CBackend/2003-06-28-LinkOnceGlobalVars.llx | 3 --- test/CodeGen/CBackend/2004-02-13-FrameReturnAddress.ll | 16 ++++++++++++++++ .../CodeGen/CBackend/2004-02-13-FrameReturnAddress.llx | 16 ---------------- .../CBackend/2004-02-15-PreexistingExternals.ll | 18 ++++++++++++++++++ .../CBackend/2004-02-15-PreexistingExternals.llx | 18 ------------------ .../CBackend/2004-02-26-FPNotPrintableConstants.ll | 11 +++++++++++ .../CBackend/2004-02-26-FPNotPrintableConstants.llx | 11 ----------- test/CodeGen/CBackend/2004-02-26-LinkOnceFunctions.ll | 6 ++++++ test/CodeGen/CBackend/2004-02-26-LinkOnceFunctions.llx | 6 ------ .../CodeGen/CBackend/2004-11-13-FunctionPointerCast.ll | 12 ++++++++++++ .../CBackend/2004-11-13-FunctionPointerCast.llx | 12 ------------ 12 files changed, 66 insertions(+), 66 deletions(-) create mode 100644 test/CodeGen/CBackend/2003-06-28-LinkOnceGlobalVars.ll delete mode 100644 test/CodeGen/CBackend/2003-06-28-LinkOnceGlobalVars.llx create mode 100644 test/CodeGen/CBackend/2004-02-13-FrameReturnAddress.ll delete mode 100644 test/CodeGen/CBackend/2004-02-13-FrameReturnAddress.llx create mode 100644 test/CodeGen/CBackend/2004-02-15-PreexistingExternals.ll delete mode 100644 test/CodeGen/CBackend/2004-02-15-PreexistingExternals.llx create mode 100644 test/CodeGen/CBackend/2004-02-26-FPNotPrintableConstants.ll delete mode 100644 test/CodeGen/CBackend/2004-02-26-FPNotPrintableConstants.llx create mode 100644 test/CodeGen/CBackend/2004-02-26-LinkOnceFunctions.ll delete mode 100644 test/CodeGen/CBackend/2004-02-26-LinkOnceFunctions.llx create mode 100644 test/CodeGen/CBackend/2004-11-13-FunctionPointerCast.ll delete mode 100644 test/CodeGen/CBackend/2004-11-13-FunctionPointerCast.llx (limited to 'test/CodeGen/CBackend') diff --git a/test/CodeGen/CBackend/2003-06-28-LinkOnceGlobalVars.ll b/test/CodeGen/CBackend/2003-06-28-LinkOnceGlobalVars.ll new file mode 100644 index 0000000..ef3b579 --- /dev/null +++ b/test/CodeGen/CBackend/2003-06-28-LinkOnceGlobalVars.ll @@ -0,0 +1,3 @@ +; RUN: llvm-as < %s | llc -march=c | grep common | grep X + +@X = linkonce global i32 5 diff --git a/test/CodeGen/CBackend/2003-06-28-LinkOnceGlobalVars.llx b/test/CodeGen/CBackend/2003-06-28-LinkOnceGlobalVars.llx deleted file mode 100644 index ef3b579..0000000 --- a/test/CodeGen/CBackend/2003-06-28-LinkOnceGlobalVars.llx +++ /dev/null @@ -1,3 +0,0 @@ -; RUN: llvm-as < %s | llc -march=c | grep common | grep X - -@X = linkonce global i32 5 diff --git a/test/CodeGen/CBackend/2004-02-13-FrameReturnAddress.ll b/test/CodeGen/CBackend/2004-02-13-FrameReturnAddress.ll new file mode 100644 index 0000000..911d6d4 --- /dev/null +++ b/test/CodeGen/CBackend/2004-02-13-FrameReturnAddress.ll @@ -0,0 +1,16 @@ +; RUN: llvm-as < %s | llc -march=c | grep builtin_return_address + +declare i8* @llvm.returnaddress(i32) + +declare i8* @llvm.frameaddress(i32) + +define i8* @test1() { + %X = call i8* @llvm.returnaddress( i32 0 ) ; [#uses=1] + ret i8* %X +} + +define i8* @test2() { + %X = call i8* @llvm.frameaddress( i32 0 ) ; [#uses=1] + ret i8* %X +} + diff --git a/test/CodeGen/CBackend/2004-02-13-FrameReturnAddress.llx b/test/CodeGen/CBackend/2004-02-13-FrameReturnAddress.llx deleted file mode 100644 index 911d6d4..0000000 --- a/test/CodeGen/CBackend/2004-02-13-FrameReturnAddress.llx +++ /dev/null @@ -1,16 +0,0 @@ -; RUN: llvm-as < %s | llc -march=c | grep builtin_return_address - -declare i8* @llvm.returnaddress(i32) - -declare i8* @llvm.frameaddress(i32) - -define i8* @test1() { - %X = call i8* @llvm.returnaddress( i32 0 ) ; [#uses=1] - ret i8* %X -} - -define i8* @test2() { - %X = call i8* @llvm.frameaddress( i32 0 ) ; [#uses=1] - ret i8* %X -} - diff --git a/test/CodeGen/CBackend/2004-02-15-PreexistingExternals.ll b/test/CodeGen/CBackend/2004-02-15-PreexistingExternals.ll new file mode 100644 index 0000000..1629deb --- /dev/null +++ b/test/CodeGen/CBackend/2004-02-15-PreexistingExternals.ll @@ -0,0 +1,18 @@ +; The intrinsic lowering pass was lowering intrinsics like llvm.memcpy to +; explicitly specified prototypes, inserting a new function if the old one +; didn't exist. This caused there to be two external memcpy functions in +; this testcase for example, which caused the CBE to mangle one, screwing +; everything up. :( Test that this does not happen anymore. +; +; RUN: llvm-as < %s | llc -march=c | not grep _memcpy + +declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) + +declare float* @memcpy(i32*, i32, i32) + +define i32 @test(i8* %A, i8* %B, i32* %C) { + call float* @memcpy( i32* %C, i32 4, i32 17 ) ; :1 [#uses=0] + call void @llvm.memcpy.i32( i8* %A, i8* %B, i32 123, i32 14 ) + ret i32 7 +} + diff --git a/test/CodeGen/CBackend/2004-02-15-PreexistingExternals.llx b/test/CodeGen/CBackend/2004-02-15-PreexistingExternals.llx deleted file mode 100644 index 1629deb..0000000 --- a/test/CodeGen/CBackend/2004-02-15-PreexistingExternals.llx +++ /dev/null @@ -1,18 +0,0 @@ -; The intrinsic lowering pass was lowering intrinsics like llvm.memcpy to -; explicitly specified prototypes, inserting a new function if the old one -; didn't exist. This caused there to be two external memcpy functions in -; this testcase for example, which caused the CBE to mangle one, screwing -; everything up. :( Test that this does not happen anymore. -; -; RUN: llvm-as < %s | llc -march=c | not grep _memcpy - -declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) - -declare float* @memcpy(i32*, i32, i32) - -define i32 @test(i8* %A, i8* %B, i32* %C) { - call float* @memcpy( i32* %C, i32 4, i32 17 ) ; :1 [#uses=0] - call void @llvm.memcpy.i32( i8* %A, i8* %B, i32 123, i32 14 ) - ret i32 7 -} - diff --git a/test/CodeGen/CBackend/2004-02-26-FPNotPrintableConstants.ll b/test/CodeGen/CBackend/2004-02-26-FPNotPrintableConstants.ll new file mode 100644 index 0000000..6f23915 --- /dev/null +++ b/test/CodeGen/CBackend/2004-02-26-FPNotPrintableConstants.ll @@ -0,0 +1,11 @@ +; This is a non-normal FP value +; RUN: llvm-as < %s | llc -march=c | grep FPConstant | grep static + +define float @func() { + ret float 0xFFF0000000000000 +} + +define double @func2() { + ret double 0xFF20000000000000 +} + diff --git a/test/CodeGen/CBackend/2004-02-26-FPNotPrintableConstants.llx b/test/CodeGen/CBackend/2004-02-26-FPNotPrintableConstants.llx deleted file mode 100644 index 6f23915..0000000 --- a/test/CodeGen/CBackend/2004-02-26-FPNotPrintableConstants.llx +++ /dev/null @@ -1,11 +0,0 @@ -; This is a non-normal FP value -; RUN: llvm-as < %s | llc -march=c | grep FPConstant | grep static - -define float @func() { - ret float 0xFFF0000000000000 -} - -define double @func2() { - ret double 0xFF20000000000000 -} - diff --git a/test/CodeGen/CBackend/2004-02-26-LinkOnceFunctions.ll b/test/CodeGen/CBackend/2004-02-26-LinkOnceFunctions.ll new file mode 100644 index 0000000..2d62231 --- /dev/null +++ b/test/CodeGen/CBackend/2004-02-26-LinkOnceFunctions.ll @@ -0,0 +1,6 @@ +; RUN: llvm-as < %s | llc -march=c | grep func1 | grep WEAK + +define linkonce i32 @func1() { + ret i32 5 +} + diff --git a/test/CodeGen/CBackend/2004-02-26-LinkOnceFunctions.llx b/test/CodeGen/CBackend/2004-02-26-LinkOnceFunctions.llx deleted file mode 100644 index 2d62231..0000000 --- a/test/CodeGen/CBackend/2004-02-26-LinkOnceFunctions.llx +++ /dev/null @@ -1,6 +0,0 @@ -; RUN: llvm-as < %s | llc -march=c | grep func1 | grep WEAK - -define linkonce i32 @func1() { - ret i32 5 -} - diff --git a/test/CodeGen/CBackend/2004-11-13-FunctionPointerCast.ll b/test/CodeGen/CBackend/2004-11-13-FunctionPointerCast.ll new file mode 100644 index 0000000..a8ee438 --- /dev/null +++ b/test/CodeGen/CBackend/2004-11-13-FunctionPointerCast.ll @@ -0,0 +1,12 @@ +; The CBE should not emit code that casts the function pointer. This causes +; GCC to get testy and insert trap instructions instead of doing the right +; thing. :( +; RUN: llvm-as < %s | llc -march=c + +declare void @external(i8*) + +define i32 @test(i32* %X) { + %RV = call i32 bitcast (void (i8*)* @external to i32 (i32*)*)( i32* %X ) ; [#uses=1] + ret i32 %RV +} + diff --git a/test/CodeGen/CBackend/2004-11-13-FunctionPointerCast.llx b/test/CodeGen/CBackend/2004-11-13-FunctionPointerCast.llx deleted file mode 100644 index a8ee438..0000000 --- a/test/CodeGen/CBackend/2004-11-13-FunctionPointerCast.llx +++ /dev/null @@ -1,12 +0,0 @@ -; The CBE should not emit code that casts the function pointer. This causes -; GCC to get testy and insert trap instructions instead of doing the right -; thing. :( -; RUN: llvm-as < %s | llc -march=c - -declare void @external(i8*) - -define i32 @test(i32* %X) { - %RV = call i32 bitcast (void (i8*)* @external to i32 (i32*)*)( i32* %X ) ; [#uses=1] - ret i32 %RV -} - -- cgit v1.1