diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-26 08:25:06 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-26 08:25:06 +0000 |
commit | e3ff5ada8a8f6cc166ecc45147da0d63c3683026 (patch) | |
tree | ccd4a6b0d605384b41f7d3b84cc019344c2dd65a /test/CodeGen/PowerPC | |
parent | 950bf6030101d670ea205efd307ea5d3b375544d (diff) | |
download | llvm-e3ff5ada8a8f6cc166ecc45147da0d63c3683026.tar.gz llvm-e3ff5ada8a8f6cc166ecc45147da0d63c3683026.tar.bz2 llvm-e3ff5ada8a8f6cc166ecc45147da0d63c3683026.tar.xz |
For PR761:
Remove "target endian/pointersize" or add "target datalayout" to make
the test parse properly or set the datalayout because defaults changes.
For PR645:
Make global names use the @ prefix.
For llvm-upgrade changes:
Fix test cases or completely remove use of llvm-upgrade for test cases
that cannot survive the new renaming or upgrade capabilities.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC')
-rw-r--r-- | test/CodeGen/PowerPC/2007-01-04-ArgExtension.ll | 2 | ||||
-rw-r--r-- | test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll | 2 | ||||
-rw-r--r-- | test/CodeGen/PowerPC/and-elim.ll | 4 | ||||
-rw-r--r-- | test/CodeGen/PowerPC/and_sext.ll | 6 | ||||
-rw-r--r-- | test/CodeGen/PowerPC/small-arguments.ll | 20 | ||||
-rw-r--r-- | test/CodeGen/PowerPC/unsafe-math.ll | 2 |
6 files changed, 18 insertions, 18 deletions
diff --git a/test/CodeGen/PowerPC/2007-01-04-ArgExtension.ll b/test/CodeGen/PowerPC/2007-01-04-ArgExtension.ll index 06875f3ec9..a1dfc12b53 100644 --- a/test/CodeGen/PowerPC/2007-01-04-ArgExtension.ll +++ b/test/CodeGen/PowerPC/2007-01-04-ArgExtension.ll @@ -1,7 +1,7 @@ ; RUN: llvm-as < %s | llc -march=ppc32 | grep extsb && ; RUN: llvm-as < %s | llc -march=ppc32 | grep extsh -define i32 %p1(i8 %c, i16 %s) { +define i32 @p1(i8 %c, i16 %s) { entry: %tmp = sext i8 %c to i32 ; <i32> [#uses=1] %tmp1 = sext i16 %s to i32 ; <i32> [#uses=1] diff --git a/test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll b/test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll index eecbb8176c..cfbac7d3bc 100644 --- a/test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll +++ b/test/CodeGen/PowerPC/2007-01-15-AsmDialect.ll @@ -1,6 +1,6 @@ ; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep cntlzw -define i32 %foo() { +define i32 @foo() { entry: %retval = alloca i32, align 4 ; <i32*> [#uses=2] %tmp = alloca i32, align 4 ; <i32*> [#uses=2] diff --git a/test/CodeGen/PowerPC/and-elim.ll b/test/CodeGen/PowerPC/and-elim.ll index 8f423d8be1..b7fe9d2fb2 100644 --- a/test/CodeGen/PowerPC/and-elim.ll +++ b/test/CodeGen/PowerPC/and-elim.ll @@ -1,7 +1,7 @@ ; RUN: llvm-as < %s | llc -march=ppc32 && ; RUN: llvm-as < %s | llc -march=ppc32 | not grep rlwin -define void %test(i8* %P) { +define void @test(i8* %P) { %W = load i8* %P %X = shl i8 %W, i8 1 %Y = add i8 %X, 2 @@ -10,7 +10,7 @@ define void %test(i8* %P) { ret void } -define i16 %test2(i16 zext %crc) zext { +define i16 @test2(i16 zext %crc) zext { ; No and's should be needed for the i16s here. %tmp.1 = lshr i16 %crc, i8 1 %tmp.7 = xor i16 %tmp.1, 40961 diff --git a/test/CodeGen/PowerPC/and_sext.ll b/test/CodeGen/PowerPC/and_sext.ll index f025e21e5d..7f4c5f0c06 100644 --- a/test/CodeGen/PowerPC/and_sext.ll +++ b/test/CodeGen/PowerPC/and_sext.ll @@ -3,14 +3,14 @@ ; RUN: llvm-as < %s | llc -march=ppc32 | not grep extsh && ; RUN: llvm-as < %s | llc -march=ppc32 | not grep extsb -define i32 %test1(i32 %mode.0.i.0) { +define i32 @test1(i32 %mode.0.i.0) { %tmp.79 = trunc i32 %mode.0.i.0 to i16 %tmp.80 = sext i16 %tmp.79 to i32 %tmp.81 = and i32 %tmp.80, 24 ret i32 %tmp.81 } -define i16 %test2(i16 sext %X, i16 sext %x) sext { +define i16 @test2(i16 sext %X, i16 sext %x) sext { %tmp = sext i16 %X to i32 %tmp1 = sext i16 %x to i32 %tmp2 = add i32 %tmp, %tmp1 @@ -21,7 +21,7 @@ define i16 %test2(i16 sext %X, i16 sext %x) sext { ret i16 %retval } -define i16 %test3(i32 zext %X) sext { +define i16 @test3(i32 zext %X) sext { %tmp1 = lshr i32 %X, i8 16 %tmp1 = trunc i32 %tmp1 to i16 ret i16 %tmp1 diff --git a/test/CodeGen/PowerPC/small-arguments.ll b/test/CodeGen/PowerPC/small-arguments.ll index 0068427772..3ab92d1187 100644 --- a/test/CodeGen/PowerPC/small-arguments.ll +++ b/test/CodeGen/PowerPC/small-arguments.ll @@ -1,39 +1,39 @@ ; RUN: llvm-as < %s | llc -march=ppc32 && ; RUN: llvm-as < %s | llc -march=ppc32 | not grep 'extsh\|rlwinm' -declare i16 %foo() sext +declare i16 @foo() sext -define i32 %test1(i16 sext %X) { +define i32 @test1(i16 sext %X) { %Y = sext i16 %X to i32 ;; dead ret i32 %Y } -define i32 %test2(i16 zext %X) { +define i32 @test2(i16 zext %X) { %Y = sext i16 %X to i32 %Z = and i32 %Y, 65535 ;; dead ret i32 %Z } -define void %test3() { - %tmp.0 = call i16 %foo() sext ;; no extsh! +define void @test3() { + %tmp.0 = call i16 @foo() sext ;; no extsh! %tmp.1 = icmp slt i16 %tmp.0, 1234 br i1 %tmp.1, label %then, label %UnifiedReturnBlock then: - call i32 %test1(i16 0 sext) + call i32 @test1(i16 0 sext) ret void UnifiedReturnBlock: ret void } -define i32 %test4(i16* %P) { +define i32 @test4(i16* %P) { %tmp.1 = load i16* %P %tmp.2 = zext i16 %tmp.1 to i32 %tmp.3 = and i32 %tmp.2, 255 ret i32 %tmp.3 } -define i32 %test5(i16* %P) { +define i32 @test5(i16* %P) { %tmp.1 = load i16* %P %tmp.2 = bitcast i16 %tmp.1 to i16 %tmp.3 = zext i16 %tmp.2 to i32 @@ -41,13 +41,13 @@ define i32 %test5(i16* %P) { ret i32 %tmp.4 } -define i32 %test6(i32* %P) { +define i32 @test6(i32* %P) { %tmp.1 = load i32* %P %tmp.2 = and i32 %tmp.1, 255 ret i32 %tmp.2 } -define i16 %test7(float %a) zext { +define i16 @test7(float %a) zext { %tmp.1 = fptoui float %a to i16 ret i16 %tmp.1 } diff --git a/test/CodeGen/PowerPC/unsafe-math.ll b/test/CodeGen/PowerPC/unsafe-math.ll index 29a45985bb..583c542192 100644 --- a/test/CodeGen/PowerPC/unsafe-math.ll +++ b/test/CodeGen/PowerPC/unsafe-math.ll @@ -1,7 +1,7 @@ ; RUN: llvm-as < %s | llc -march=ppc32 | grep fmul | wc -l | grep 2 && ; RUN: llvm-as < %s | llc -march=ppc32 -enable-unsafe-fp-math | grep fmul | wc -l | grep 1 -define double %foo(double %X) { +define double @foo(double %X) { %tmp1 = mul double %X, 1.23 %tmp2 = mul double %tmp1, 4.124 ret double %tmp2 |