blob: 851fd90ba8e304a00b61530202aa7b3fae3b1761 [file] [log] [blame]
Ehsan Amiria538b0f2016-08-03 18:17:35 +00001; RUN: llc -verify-machineinstrs < %s
Mehdi Aminid178f4f2015-09-16 05:34:32 +00002; REQUIRES: default_triple
Chris Lattner75b57132006-08-15 23:45:28 +00003
Tanya Lattner8bf97c22008-03-25 04:26:08 +00004 %struct..0anon = type { i32 }
5 %struct.rtx_def = type { i16, i8, i8, [1 x %struct..0anon] }
Chris Lattner75b57132006-08-15 23:45:28 +00006
Tanya Lattner8bf97c22008-03-25 04:26:08 +00007define fastcc void @immed_double_const(i32 %i0, i32 %i1) {
Chris Lattner75b57132006-08-15 23:45:28 +00008entry:
David Blaikiea79ac142015-02-27 21:17:42 +00009 %tmp1 = load i32, i32* null ; <i32> [#uses=1]
Tanya Lattner8bf97c22008-03-25 04:26:08 +000010 switch i32 %tmp1, label %bb103 [
11 i32 1, label %bb
12 i32 3, label %bb
Chris Lattner75b57132006-08-15 23:45:28 +000013 ]
Chris Lattner75b57132006-08-15 23:45:28 +000014bb: ; preds = %entry, %entry
Tanya Lattner8bf97c22008-03-25 04:26:08 +000015 %tmp14 = icmp sgt i32 0, 31 ; <i1> [#uses=1]
16 br i1 %tmp14, label %cond_next77, label %cond_next17
Chris Lattner75b57132006-08-15 23:45:28 +000017cond_next17: ; preds = %bb
18 ret void
Chris Lattner75b57132006-08-15 23:45:28 +000019cond_next77: ; preds = %bb
Tanya Lattner8bf97c22008-03-25 04:26:08 +000020 %tmp79.not = icmp ne i32 %i1, 0 ; <i1> [#uses=1]
21 %tmp84 = icmp slt i32 %i0, 0 ; <i1> [#uses=2]
22 %bothcond1 = or i1 %tmp79.not, %tmp84 ; <i1> [#uses=1]
23 br i1 %bothcond1, label %bb88, label %bb99
Chris Lattner75b57132006-08-15 23:45:28 +000024bb88: ; preds = %cond_next77
Tanya Lattner8bf97c22008-03-25 04:26:08 +000025 %bothcond2 = and i1 false, %tmp84 ; <i1> [#uses=0]
Chris Lattner75b57132006-08-15 23:45:28 +000026 ret void
Chris Lattner75b57132006-08-15 23:45:28 +000027bb99: ; preds = %cond_next77
28 ret void
Chris Lattner75b57132006-08-15 23:45:28 +000029bb103: ; preds = %entry
30 ret void
31}