Jim Grosbach | 469bbdb | 2010-07-16 23:05:05 +0000 | [diff] [blame^] | 1 | ; RUN: llc -march=arm -mattr=+v6t2 < %s | FileCheck %s |
| 2 | |
| 3 | %struct.F = type { [3 x i8], i8 } |
| 4 | |
| 5 | @X = common global %struct.F zeroinitializer, align 4 ; <%struct.F*> [#uses=1] |
| 6 | |
| 7 | define void @f1([1 x i32] %f.coerce0) nounwind { |
| 8 | entry: |
| 9 | ; CHECK: f1 |
| 10 | ; CHECK: mov r2, #10 |
| 11 | ; CHECK: bfi r1, r2, #22, #4 |
| 12 | %0 = load i32* bitcast (%struct.F* @X to i32*), align 4 ; <i32> [#uses=1] |
| 13 | %1 = and i32 %0, -62914561 ; <i32> [#uses=1] |
| 14 | %2 = or i32 %1, 41943040 ; <i32> [#uses=1] |
| 15 | store i32 %2, i32* bitcast (%struct.F* @X to i32*), align 4 |
| 16 | ret void |
| 17 | } |