Skip to content

Commit

Permalink
Fix for llvm trunk (#7876)
Browse files Browse the repository at this point in the history
  • Loading branch information
abadams authored Oct 5, 2023
1 parent c31e8f7 commit 39f12a7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/correctness/simd_op_check_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,14 @@ class SimdOpCheckRISCV : public SimdOpCheckTest {
// Basic math operations.
check("vadd.vv", lanes, i_1 + i_2);
check("vadd.vv", lanes, u_1 + u_2);
check("vadd.vi", lanes, i_1 + 2);
check("vadd.vi", lanes, u_1 + 2);
check("vadd.vx", lanes, i_1 + 42);
check("vadd.vx", lanes, u_1 + 42);

// Vector + immediate / scalar form. Disabled because LLVM 18 broadcasts
// scalars to vectors registers outside the loop.
// check("vadd.vi", lanes, i_1 + 2);
// check("vadd.vi", lanes, u_1 + 2);
// check("vadd.vx", lanes, i_1 + 42);
// check("vadd.vx", lanes, u_1 + 42);

check("vsub.vv", lanes, i_1 - i_2);
check("vsub.vv", lanes, u_1 - u_2);
// TODO: these seem to compile to a vector add
Expand Down

0 comments on commit 39f12a7

Please sign in to comment.