blob: 48ef43762f0a4af3971bd347a184563a590203e5 [file] [log] [blame]
Jim Grosbach469bbdb2010-07-16 23:05:05 +00001; 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
7define void @f1([1 x i32] %f.coerce0) nounwind {
8entry:
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}