brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · d18d075 Raw
52 lines · plain
1; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \2; RUN:   --ppc-asm-full-reg-names -mcpu=pwr8 < %s | FileCheck %s3; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \4; RUN:   --ppc-asm-full-reg-names -mcpu=pwr7 < %s | FileCheck %s5; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu \6; RUN:   --ppc-asm-full-reg-names -mcpu=pwr7 < %s | FileCheck %s7; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-aix \8; RUN:   --ppc-asm-full-reg-names -mcpu=pwr8 < %s | FileCheck %s -check-prefix=AIX9; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-aix \10; RUN:   --ppc-asm-full-reg-names -mcpu=pwr8 < %s | FileCheck %s -check-prefix=AIX11; RUN: llc -mtriple=powerpc-ibm-aix-xcoff -filetype=obj -o %t_32.o < %s12; RUN: llvm-readobj --exception-section %t_32.o | FileCheck %s --check-prefix=OBJ13 14; Check that we do not crash in object mode15; OBJ:       Exception section {16; OBJ-NEXT:    Symbol: .test__trap_annotation17 18!1 = !{!"ppc-trap-reason", !"1", !"2"}19declare void @llvm.ppc.trap(i32 %a)20declare void @llvm.ppc.tw(i32 %a, i32 %b, i32 immarg)21define dso_local void @test__trap_annotation(i32 %a) {22; CHECK-LABEL: test__trap_annotation:23; CHECK:       # %bb.0:24; CHECK-NEXT:    twi 24, r3, 025; CHECK-NEXT:    blr26;27; AIX-LABEL: test__trap_annotation:28; AIX:       # %bb.0:29; AIX-NEXT:  L..tmp0:30; AIX-NEXT:    .except .test__trap_annotation, 1, 231; AIX-NEXT:    twi 24, r3, 032; AIX-NEXT:    blr33  call void @llvm.ppc.trap(i32 %a), !annotation !134  ret void35}36 37define dso_local void @test__tw_annotation(i32 %a) {38; CHECK-LABEL: test__tw_annotation:39; CHECK:       # %bb.0:40; CHECK-NEXT:    twi 0, r3, 441; CHECK-NEXT:    blr42;43; AIX-LABEL: test__tw_annotation:44; AIX:       # %bb.0:45; AIX-NEXT:  L..tmp1:46; AIX-NEXT:    .except .test__tw_annotation, 1, 247; AIX-NEXT:    twi 0, r3, 448; AIX-NEXT:    blr49  call void @llvm.ppc.tw(i32 4, i32 %a, i32 0), !annotation !150  ret void51}52