| ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py |
| ; RUN: llc < %s -relocation-model=static -mtriple=i686-unknown-unknown | FileCheck %s |
| ; This should produce two shll instructions, not any lea's. |
| target triple = "i686-apple-darwin8" |
| ; CHECK-NEXT: movl Y, %eax |
| ; CHECK-NEXT: shll $3, %eax |
| ; CHECK-NEXT: orl %eax, X |
| %tmp2 = load i32, i32* @X |
| %tmp3 = or i32 %tmp1, %tmp2 |
| define i32 @fn2(i32 %X, i32 %Y) { |
| ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax |
| ; CHECK-NEXT: shll $3, %eax |
| ; CHECK-NEXT: orl {{[0-9]+}}(%esp), %eax |