projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Use movaps / movd to extract vector element 0 even with sse4.1. It's still cheaper...
[oota-llvm.git]
/
test
/
CodeGen
/
X86
/
fold-imm.ll
1
; RUN: llvm-as < %s | llc -march=x86 | grep inc
2
; RUN: llvm-as < %s | llc -march=x86 | grep add | grep 4
3
4
define i32 @test(i32 %X) nounwind {
5
entry:
6
%0 = add i32 %X, 1
7
ret i32 %0
8
}
9
10
define i32 @test2(i32 %X) nounwind {
11
entry:
12
%0 = add i32 %X, 4
13
ret i32 %0
14
}