projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[TwoAddressInstructionPass] When looking for a 3 addr conversion after commuting...
[oota-llvm.git]
/
test
/
CodeGen
/
X86
/
isel-sink2.ll
diff --git
a/test/CodeGen/X86/isel-sink2.ll
b/test/CodeGen/X86/isel-sink2.ll
index 9d9c747fa49599477e7d5b96ef308d94bf85664a..65f1994b9fe1394b8069e895934181fac53b17a1 100644
(file)
--- a/
test/CodeGen/X86/isel-sink2.ll
+++ b/
test/CodeGen/X86/isel-sink2.ll
@@
-1,17
+1,17
@@
-; RUN: ll
vm-as < %s | llc
-march=x86 > %t
-; RUN: grep
{movb.7(%...)}
%t
+; RUN: ll
c < %s
-march=x86 > %t
+; RUN: grep
"movb.7(%...)"
%t
; RUN: not grep leal %t
define i8 @test(i32 *%P) nounwind {
; RUN: not grep leal %t
define i8 @test(i32 *%P) nounwind {
- %Q = getelementptr i32* %P, i32 1
+ %Q = getelementptr i32
, i32
* %P, i32 1
%R = bitcast i32* %Q to i8*
%R = bitcast i32* %Q to i8*
- %S = load i8* %R
+ %S = load i8
, i8
* %R
%T = icmp eq i8 %S, 0
br i1 %T, label %TB, label %F
TB:
ret i8 4
F:
%T = icmp eq i8 %S, 0
br i1 %T, label %TB, label %F
TB:
ret i8 4
F:
- %U = getelementptr i8* %R, i32 3
- %V = load i8* %U
+ %U = getelementptr i8
, i8
* %R, i32 3
+ %V = load i8
, i8
* %U
ret i8 %V
}
ret i8 %V
}