Skip to content

Commit e5466d2

Browse files
committed
Fix tests/codegen/const-vector.rs test failure on riscv64
1 parent 119574f commit e5466d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/codegen/const-vector.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#![feature(simd_ffi)]
1515
#![feature(arm_target_feature)]
1616
#![feature(mips_target_feature)]
17+
#![feature(riscv_target_feature)]
1718
#![allow(non_camel_case_types)]
1819

1920
// Setting up structs that can be used as const vectors
@@ -51,6 +52,7 @@ extern "unadjusted" {
5152
#[cfg_attr(target_arch = "arm", target_feature(enable = "neon"))]
5253
#[cfg_attr(target_arch = "x86", target_feature(enable = "sse"))]
5354
#[cfg_attr(target_arch = "mips", target_feature(enable = "msa"))]
55+
#[cfg_attr(target_arch = "riscv64", target_feature(enable = "v"))]
5456
pub fn do_call() {
5557
unsafe {
5658
// CHECK: call void @test_i8x2(<2 x i8> <i8 32, i8 64>

0 commit comments

Comments
 (0)