1 ; RUN: llc -mtriple=x86_64-linux-gnu %s -o - | FileCheck %s
3 define void @test_ubsantrap() {
4 ; CHECK-LABEL: test_ubsantrap
5 ; CHECK: ud1l 12(%eax), %eax
6 call void @llvm.ubsantrap(i8 12)
10 define void @test_ubsantrap_function() {
11 ; CHECK-LABEL: test_ubsantrap_function:
12 ; CHECK: movl $12, %edi
14 call void @llvm.ubsantrap(i8 12) "trap-func-name"="wibble"
18 declare void @llvm.ubsantrap(i8)