30 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=riscv32 -global-isel=0 -fast-isel=0 | FileCheck %s3; RUN: llc < %s -mtriple=riscv32 -global-isel=1 -fast-isel=0 | FileCheck %s4; RUN: llc < %s -mtriple=riscv32 -global-isel=0 -fast-isel=1 | FileCheck %s5 6; RUN: llc < %s -mtriple=riscv64 -global-isel=0 -fast-isel=0 | FileCheck %s7; RUN: llc < %s -mtriple=riscv64 -global-isel=1 -fast-isel=0 | FileCheck %s8; RUN: llc < %s -mtriple=riscv64 -global-isel=0 -fast-isel=1 | FileCheck %s9 10define i1 @test_runtime() local_unnamed_addr {11; CHECK-LABEL: test_runtime:12; CHECK: # %bb.0: # %entry13; CHECK-NEXT: li a0, 114; CHECK-NEXT: ret15entry:16 %allow = call i1 @llvm.allow.runtime.check(metadata !"test_check")17 ret i1 %allow18}19 20define i1 @test_ubsan() local_unnamed_addr {21; CHECK-LABEL: test_ubsan:22; CHECK: # %bb.0: # %entry23; CHECK-NEXT: li a0, 124; CHECK-NEXT: ret25entry:26 %allow = call i1 @llvm.allow.ubsan.check(i8 7)27 ret i1 %allow28}29 30