1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -relocation-model=static -mtriple=i686-unknown-unknown | FileCheck %s
4 ; This should produce two shll instructions, not any lea's.
6 target triple = "i686-apple-darwin8"
13 ; CHECK-NEXT: movl Y, %eax
14 ; CHECK-NEXT: shll $3, %eax
15 ; CHECK-NEXT: orl %eax, X
17 %tmp = load i32, i32* @Y
18 %tmp1 = shl i32 %tmp, 3
19 %tmp2 = load i32, i32* @X
20 %tmp3 = or i32 %tmp1, %tmp2
21 store i32 %tmp3, i32* @X
25 define i32 @fn2(i32 %X, i32 %Y) {
28 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
29 ; CHECK-NEXT: shll $3, %eax
30 ; CHECK-NEXT: orl {{[0-9]+}}(%esp), %eax
33 %tmp4 = or i32 %tmp2, %X