1 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin
4 target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:32-n32"
5 target triple = "thumbv7-apple-darwin10"
7 define void @test(i32 %mode) nounwind optsize noinline {
9 br i1 undef, label %return, label %bb3
12 br i1 undef, label %bb15, label %bb18
18 switch i32 %mode, label %return [
22 i32 6, label %bb150.preheader
23 i32 9, label %bb310.preheader
24 i32 13, label %bb414.preheader
25 i32 15, label %bb468.preheader
26 i32 16, label %bb522.preheader
29 bb150.preheader: ; preds = %bb18
30 br i1 undef, label %bb154, label %bb160
32 bb310.preheader: ; preds = %bb18
35 bb414.preheader: ; preds = %bb18
38 bb468.preheader: ; preds = %bb18
41 bb522.preheader: ; preds = %bb18
50 bb107: ; preds = %bb18
53 bb110: ; preds = %bb122, %bb107
54 %asmtmp.i.i179 = tail call i16 asm "rev16 $0, $1\0A", "=l,l"(i16 undef) nounwind ; <i16> [#uses=1]
55 %asmtmp.i.i178 = tail call i16 asm "rev16 $0, $1\0A", "=l,l"(i16 %asmtmp.i.i179) nounwind ; <i16> [#uses=1]
56 store i16 %asmtmp.i.i178, i16* undef, align 2
57 br i1 undef, label %bb122, label %bb121
59 bb121: ; preds = %bb110
62 bb122: ; preds = %bb121, %bb110
65 bb154: ; preds = %bb150.preheader
68 bb160: ; preds = %bb150.preheader
71 return: ; preds = %bb18, %entry