repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
This should always be signed chars, so use int8_t. This fixes a miscompile when
[llvm/stm8.git]
/
test
/
CodeGen
/
X86
/
avoid-lea-scale2.ll
blob
cee2ee4e039921ecbebcc95f6437de3c8df4364b
1
; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
2
; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s
3
; CHECK: leal -2({{%rdi,%rdi|%rcx,%rcx}})
4
5
define i32 @foo(i32 %x) nounwind readnone {
6
%t0 = shl i32 %x, 1
7
%t1 = add i32 %t0, -2
8
ret i32 %t1
9
}
10