projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[mips] Report correct location when "erroring" about the use of $at when it's not...
[oota-llvm.git]
/
test
/
Feature
/
testlogical.ll
diff --git
a/test/Feature/testlogical.ll
b/test/Feature/testlogical.ll
index 97452b4557ec761e0481d35deb0674271fd8f207..a064869abfa7ebe1b675bd26e29cedfe6e273d59 100644
(file)
--- a/
test/Feature/testlogical.ll
+++ b/
test/Feature/testlogical.ll
@@
-1,14
+1,11
@@
-; RUN: llvm-as
%s -o -
| llvm-dis > %t1.ll
+; RUN: llvm-as
< %s
| llvm-dis > %t1.ll
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
; RUN: diff %t1.ll %t2.ll
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
; RUN: diff %t1.ll %t2.ll
-implementation
-
-int "simpleAdd"(int %i0, int %j0)
-begin
- %t1 = xor int %i0, %j0
- %t2 = or int %i0, %j0
- %t3 = and int %t1, %t2
- ret int %t3
-end
+define i32 @simpleAdd(i32 %i0, i32 %j0) {
+ %t1 = xor i32 %i0, %j0 ; <i32> [#uses=1]
+ %t2 = or i32 %i0, %j0 ; <i32> [#uses=1]
+ %t3 = and i32 %t1, %t2 ; <i32> [#uses=1]
+ ret i32 %t3
+}