NAKAMURA Takumi | bfc4c98 | 2011-03-16 13:53:07 +0000 | [diff] [blame^] | 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}}) | ||||
Dan Gohman | 41d0b9d | 2009-07-22 23:26:55 +0000 | [diff] [blame] | 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 |