Home | History | Annotate | Download | only in SPARC
      1 ; RUN: llc < %s -march=sparc
      2 
      3 ; We cannot emit jump tables on Sparc, but we should correctly handle this case.
      4 
      5 target 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 
      7 define i32 @foo(i32 %f) {
      8 entry:
      9 	switch i32 %f, label %bb14 [
     10 		 i32 0, label %UnifiedReturnBlock
     11 		 i32 1, label %bb4
     12 		 i32 2, label %bb7
     13 		 i32 3, label %bb10
     14 	]
     15 
     16 bb4:		; preds = %entry
     17 	ret i32 2
     18 
     19 bb7:		; preds = %entry
     20 	ret i32 5
     21 
     22 bb10:		; preds = %entry
     23 	ret i32 9
     24 
     25 bb14:		; preds = %entry
     26 	ret i32 0
     27 
     28 UnifiedReturnBlock:		; preds = %entry
     29 	ret i32 1
     30 }
     31