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 1
1
//@ assembly-output: emit-asm
2
2
//@ compile-flags: --target riscv64imac-unknown-none-elf -Ctarget-feature=+f,+d
3
3
//@ 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
4
7
5
8
#![ feature( no_core, lang_items, f16) ]
6
9
#![ crate_type = "lib" ]
@@ -31,9 +34,11 @@ pub extern "C" fn read_f16(x: &f16) -> f16 {
31
34
// CHECK-LABEL: read_f32
32
35
#[ no_mangle]
33
36
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
37
42
* x
38
43
}
39
44
You can’t perform that action at this time.
0 commit comments