File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 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]
3336pub 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
You can’t perform that action at this time.
0 commit comments