brintos

brintos / llvm-project-archived public Read only

0
0
Text · 831 B · 073b518 Raw
17 lines · plain
1; RUN: llc -mtriple=riscv32 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed='gisel*' %s -o - 2>&1 | FileCheck %s -check-prefixes=CHECK2; RUN: llc -mtriple=riscv64 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed='gisel*' %s -o - 2>&1 | FileCheck %s -check-prefixes=CHECK3 4; This file checks that we use the fallback path for things that are known to5; be unsupported on the RISC-V target. It should progressively shrink in size.6 7%byval.class = type { i32 }8 9declare void @test_byval_arg(ptr byval(%byval.class) %x)10 11define void @test_byval_param(ptr %x) {12; CHECK: remark: {{.*}} unable to translate instruction: call13; CHECK-LABEL: warning: Instruction selection used fallback path for test_byval_param14  call void @test_byval_arg(ptr byval(%byval.class) %x)15  ret void16}17