1; RUN: llc -mcpu=pwr7 -verify-machineinstrs < %s | FileCheck %s 2target datalayout = "E-m:e-i64:64-n32:64" 3target triple = "powerpc64-unknown-linux-gnu" 4 5@.str1 = external unnamed_addr constant [5 x i8], align 1 6@.str10 = external unnamed_addr constant [9 x i8], align 1 7 8; Function Attrs: nounwind 9define void @main() #0 { 10; CHECK-LABEL: @main 11; Make sure that the stxvd2x passes -verify-machineinstrs 12; CHECK: stxvd2x 13 14entry: 15 %0 = tail call <8 x i16> @llvm.ppc.altivec.vupkhsb(<16 x i8> <i8 0, i8 -1, i8 -1, i8 0, i8 0, i8 0, i8 -1, i8 0, i8 -1, i8 0, i8 0, i8 -1, i8 -1, i8 -1, i8 0, i8 -1>) #0 16 %1 = tail call <8 x i16> @llvm.ppc.altivec.vupklsb(<16 x i8> <i8 0, i8 -1, i8 -1, i8 0, i8 0, i8 0, i8 -1, i8 0, i8 -1, i8 0, i8 0, i8 -1, i8 -1, i8 -1, i8 0, i8 -1>) #0 17 br i1 false, label %if.then.i68.i, label %check.exit69.i 18 19if.then.i68.i: ; preds = %entry 20 unreachable 21 22check.exit69.i: ; preds = %entry 23 br i1 undef, label %if.then.i63.i, label %check.exit64.i 24 25if.then.i63.i: ; preds = %check.exit69.i 26 tail call void (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str10, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str1, i64 0, i64 0)) #0 27 br label %check.exit64.i 28 29check.exit64.i: ; preds = %if.then.i63.i, %check.exit69.i 30 %2 = tail call i32 @llvm.ppc.altivec.vcmpequh.p(i32 2, <8 x i16> %0, <8 x i16> <i16 0, i16 -1, i16 -1, i16 0, i16 0, i16 0, i16 -1, i16 0>) #0 31 %tobool.i55.i = icmp eq i32 %2, 0 32 br i1 %tobool.i55.i, label %if.then.i58.i, label %check.exit59.i 33 34if.then.i58.i: ; preds = %check.exit64.i 35 unreachable 36 37check.exit59.i: ; preds = %check.exit64.i 38 %3 = tail call i32 @llvm.ppc.altivec.vcmpequh.p(i32 2, <8 x i16> %1, <8 x i16> <i16 -1, i16 0, i16 0, i16 -1, i16 -1, i16 -1, i16 0, i16 -1>) #0 39 %tobool.i50.i = icmp eq i32 %3, 0 40 br i1 %tobool.i50.i, label %if.then.i53.i, label %check.exit54.i 41 42if.then.i53.i: ; preds = %check.exit59.i 43 unreachable 44 45check.exit54.i: ; preds = %check.exit59.i 46 unreachable 47} 48 49; Function Attrs: nounwind readnone 50declare <8 x i16> @llvm.ppc.altivec.vupkhsb(<16 x i8>) #1 51 52; Function Attrs: nounwind readnone 53declare <8 x i16> @llvm.ppc.altivec.vupklsb(<16 x i8>) #1 54 55; Function Attrs: nounwind 56declare void @printf(i8* nocapture readonly, ...) #0 57 58; Function Attrs: nounwind readnone 59declare i32 @llvm.ppc.altivec.vcmpequh.p(i32, <8 x i16>, <8 x i16>) #1 60 61attributes #0 = { nounwind } 62attributes #1 = { nounwind readnone } 63 64