Skip to content

Commit e4f793a

Browse files
committed
riscv-soft-abi-with-float-features.rs: adapt for LLVM 20
1 parent 66701c4 commit e4f793a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/assembly/riscv-soft-abi-with-float-features.rs

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
//@ assembly-output: emit-asm
22
//@ compile-flags: --target riscv64imac-unknown-none-elf -Ctarget-feature=+f,+d
33
//@ needs-llvm-components: riscv
4+
//@ revisions: LLVM-PRE-20 LLVM-POST-20
5+
//@ [LLVM-PRE-20] ignore-llvm-version: 20 - 99
6+
//@ [LLVM-POST-20] min-llvm-version: 20
47

58
#![feature(no_core, lang_items, f16)]
69
#![crate_type = "lib"]
@@ -31,9 +34,11 @@ pub extern "C" fn read_f16(x: &f16) -> f16 {
3134
// CHECK-LABEL: read_f32
3235
#[no_mangle]
3336
pub extern "C" fn read_f32(x: &f32) -> f32 {
34-
// CHECK: flw fa5, 0(a0)
35-
// CHECK-NEXT: fmv.x.w a0, fa5
36-
// CHECK-NEXT: ret
37+
// LLVM-PRE-20: flw fa5, 0(a0)
38+
// LLVM-PRE-20-NEXT: fmv.x.w a0, fa5
39+
// LLVM-PRE-20-NEXT: ret
40+
// LLVM-POST-20: lw a0, 0(a0)
41+
// LLVM-POST-20-NEXT: ret
3742
*x
3843
}
3944

0 commit comments

Comments
 (0)