blob: e7e0580179c47dba135d0e6506fcc1eb22d9ff6c [file] [log] [blame]
Tim Northoverb4ddc082014-05-30 10:09:59 +00001; RUN: llc < %s -mtriple=armv6-apple-darwin -mcpu=arm1136jf-s -arm-atomic-cfg-tidy=0 | FileCheck %s
Bob Wilsone1961fe2010-10-26 00:02:24 +00002; 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
Jim Grosbach6d371ce2011-03-11 22:51:41 +00007; CHECK: pop
8; CHECK: pop
9; CHECK: pop
Bob Wilsone1961fe2010-10-26 00:02:24 +000010
11define i32 @test(i32 %x) {
12entry:
13 %0 = tail call signext i16 undef(i32* undef)
Tim Northoverce6538c2014-05-30 08:59:55 +000014 switch i32 %x, label %bb3 [
Bob Wilsone1961fe2010-10-26 00:02:24 +000015 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}