brintos

brintos / llvm-project-archived public Read only

0
0
Text · 605 B · 688504a Raw
31 lines · plain
1; RUN: llc < %s -mtriple=sparc2 3; We cannot emit jump tables on Sparc, but we should correctly handle this case.4 5target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"6 7define i32 @foo(i32 %f) {8entry:9	switch i32 %f, label %bb14 [10		 i32 0, label %UnifiedReturnBlock11		 i32 1, label %bb412		 i32 2, label %bb713		 i32 3, label %bb1014	]15 16bb4:		; preds = %entry17	ret i32 218 19bb7:		; preds = %entry20	ret i32 521 22bb10:		; preds = %entry23	ret i32 924 25bb14:		; preds = %entry26	ret i32 027 28UnifiedReturnBlock:		; preds = %entry29	ret i32 130}31