24 lines · plain
1; RUN: llc -mtriple=x86_64-linux-gnu %s -o - | FileCheck %s2; RUN: llc -mtriple=x86_64-scei-ps4 %s -o - | FileCheck --check-prefix=PS4 %s3; RUN: llc -mtriple=x86_64-sie-ps5 %s -o - | FileCheck --check-prefix=PS4 %s4 5define void @test_ubsantrap() {6; CHECK-LABEL: test_ubsantrap7; CHECK: ud1l 12(%eax), %eax8; PS4-LABEL: test_ubsantrap9; PS4-NOT: ud110; PS4: ud211 call void @llvm.ubsantrap(i8 12)12 ret void13}14 15define void @test_ubsantrap_function() {16; CHECK-LABEL: test_ubsantrap_function:17; CHECK: movl $12, %edi18; CHECK: callq wibble19 call void @llvm.ubsantrap(i8 12) "trap-func-name"="wibble"20 ret void21}22 23declare void @llvm.ubsantrap(i8)24