aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PowerPC/and-imm.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-03-25 04:26:08 +0000
committerTanya Lattner <tonic@nondot.org>2008-03-25 04:26:08 +0000
commit348c61831624e93741f08edec256ba20b94ba7b4 (patch)
treee662b3ee5539d7594ab49eda3eae140424ce499d /test/CodeGen/PowerPC/and-imm.ll
parent0013e453bf3652f7341a3ba1149ba173891c1c79 (diff)
downloadexternal_llvm-348c61831624e93741f08edec256ba20b94ba7b4.zip
external_llvm-348c61831624e93741f08edec256ba20b94ba7b4.tar.gz
external_llvm-348c61831624e93741f08edec256ba20b94ba7b4.tar.bz2
Byebye llvm-upgrade!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/and-imm.ll')
-rw-r--r--test/CodeGen/PowerPC/and-imm.ll16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/CodeGen/PowerPC/and-imm.ll b/test/CodeGen/PowerPC/and-imm.ll
index b1d9fcb..9c80649 100644
--- a/test/CodeGen/PowerPC/and-imm.ll
+++ b/test/CodeGen/PowerPC/and-imm.ll
@@ -1,12 +1,14 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep {ori\\|lis}
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep {ori\\|lis}
-int %test(int %X) {
- %Y = and int %X, 32769 ; andi. r3, r3, 32769
- ret int %Y
+; andi. r3, r3, 32769
+define i32 @test(i32 %X) {
+ %Y = and i32 %X, 32769 ; <i32> [#uses=1]
+ ret i32 %Y
}
-int %test2(int %X) {
- %Y = and int %X, -2147418112 ; andis. r3, r3, 32769
- ret int %Y
+; andis. r3, r3, 32769
+define i32 @test2(i32 %X) {
+ %Y = and i32 %X, -2147418112 ; <i32> [#uses=1]
+ ret i32 %Y
}