blob: 163c9b030ec8efe3e1d77ce7685422bd0d6d7a0e [file] [log] [blame]
Bob Wilsone1961fe2010-10-26 00:02:24 +00001; RUN: llc < %s -mtriple=armv6-apple-darwin -mcpu=arm1136jf-s | FileCheck %s
2; Radar 8589805: Counting the number of microcoded operations, such as for an
3; LDM instruction, was causing an assertion failure because the microop count
4; was being treated as an instruction count.
5
Eric Christopherb006fc92010-11-18 19:40:05 +00006; CHECK: push
Bob Wilsone1961fe2010-10-26 00:02:24 +00007; CHECK: ldmia
8; CHECK: ldmia
9; CHECK: ldmia
10
11define i32 @test(i32 %x) {
12entry:
13 %0 = tail call signext i16 undef(i32* undef)
14 switch i32 undef, label %bb3 [
15 i32 0, label %bb4
16 i32 1, label %bb1
17 i32 2, label %bb2
18 ]
19
20bb1:
21 ret i32 1
22
23bb2:
24 ret i32 2
25
26bb3:
27 ret i32 1
28
29bb4:
30 ret i32 3
31}