avoid non-standard predefined macros
[riscv-tests.git] / isa / rv64mi / mcsr.S
index b66611c86594d2108e7e7f94e674ba6a5ecfd758..e0256e7ef3cadc8d5f9cc1928679d185c3349af0 100644 (file)
@@ -14,7 +14,7 @@ RVTEST_RV64M
 RVTEST_CODE_BEGIN
 
   # Check that mcpuid reports the correct XLEN
-#ifdef __riscv64
+#if __riscv_xlen == 64
   TEST_CASE(2, a0, 0x2, csrr a0, misa; srl a0, a0, 62)
 #else
   TEST_CASE(2, a0, 0x1, csrr a0, misa; srl a0, a0, 30)