1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-unknown \ 3; RUN: -mcpu=pwr8 -code-model=large < %s | FileCheck %s 4%struct.STATICS1 = type <{ [128 x i8] }> 5 6@.STATICS1 = internal global %struct.STATICS1 <{ [128 x i8] c"\09\00\00\00\03\00\00\00\05\00\00\00\04\00\00\00\0A\00\00\00\0A\00\00\00\0B\00\00\00\0A\08\AF/\B8\B6\87\04 \A1\07\00\08\9D\00\00\09\00\00\00\05\00\00\00\03\00\00\00\03\00\00\00\05\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00" }>, align 16 7@.C302_MAIN_ = internal constant i32 4 8 9; Function Attrs: noinline norecurse nounwind 10define void @main() { 11L.entry: 12 tail call void @testFunc(i64* bitcast (i8* getelementptr inbounds (%struct.STATICS1, %struct.STATICS1* @.STATICS1, i64 0, i32 0, i64 124) to i64*), i64* bitcast (i32* @.C302_MAIN_ to i64*)) 13 ret void 14} 15 16; Function Attrs: noinline norecurse nounwind readonly 17define signext i32 @ifunc_(i64* nocapture readonly %i) { 18; CHECK-LABEL: ifunc_: 19; CHECK: # %bb.0: # %L.entry 20; CHECK-NEXT: lwa 3, 0(3) 21; CHECK-NEXT: blr 22L.entry: 23 %0 = bitcast i64* %i to i32* 24 %1 = load i32, i32* %0, align 4 25 ret i32 %1 26} 27 28; Function Attrs: noinline norecurse nounwind 29define void @testFunc(i64* nocapture %r, i64* nocapture readonly %k) { 30; CHECK-LABEL: testFunc 31; CHECK: mflr 0 32; CHECK: std 0, 16(1) 33; CHECK: bl .[[BRANCHNEXT:[L0-9\$a-z]+]] 34; CHECK-NEXT: [[BRANCHNEXT]] 35L.entry: 36 %0 = bitcast i64* %k to i32* 37 %1 = load i32, i32* %0, align 4 38 switch i32 %1, label %L.LB3_307 [ 39 i32 1, label %L.LB3_307.sink.split 40 i32 3, label %L.LB3_307.sink.split 41 i32 4, label %L.LB3_321.split 42 i32 5, label %L.LB3_307.sink.split 43 i32 6, label %infloop.preheader 44 i32 2, label %infloop11.preheader 45 ] 46 47infloop11.preheader: ; preds = %L.entry 48 br label %infloop11 49 50infloop.preheader: ; preds = %L.entry 51 br label %infloop 52 53L.LB3_321.split: ; preds = %L.entry 54 br label %L.LB3_307.sink.split 55 56L.LB3_307.sink.split: ; preds = %L.LB3_321.split, %L.entry, %L.entry, %L.entry 57 %.sink = phi i32 [ 5, %L.LB3_321.split ], [ -3, %L.entry ], [ -3, %L.entry ], [ -3, %L.entry ] 58 %2 = bitcast i64* %r to i32* 59 store i32 %.sink, i32* %2, align 4 60 br label %L.LB3_307 61 62L.LB3_307: ; preds = %L.LB3_307.sink.split, %L.entry 63 ret void 64 65infloop: ; preds = %infloop.preheader, %infloop 66 br label %infloop 67 68infloop11: ; preds = %infloop11.preheader, %infloop11 69 br label %infloop11 70} 71