diff options
| author | Caiweiran <cai.weiran.zte.com.cn> | 2025-07-28 16:46:25 +0000 |
|---|---|---|
| committer | Caiweiran <cai.weiran.zte.com.cn> | 2025-08-18 19:37:13 +0000 |
| commit | 9d08596a2e315cdaa13a4c98e30c8b14853a9e9a (patch) | |
| tree | 5e350ed43b977a1b9a3a0b9b840d290242732a22 /tests/codegen-llvm/enum/enum-match.rs | |
| parent | 425a9c0a0e365c0b8c6cfd00c2ded83a73bed9a0 (diff) | |
| download | rust-9d08596a2e315cdaa13a4c98e30c8b14853a9e9a.tar.gz rust-9d08596a2e315cdaa13a4c98e30c8b14853a9e9a.zip | |
tests: fix RISC-V failures and adjust transmute-scalar.rs target
Resolve several ./x test failures on RISC-V caused by ABI and codegen differences. Update multiple codegen-llvm tests for compatibility, and explicitly set the target for transmute-scalar.rs to x86_64 to ensure consistent behavior across hosts.
Diffstat (limited to 'tests/codegen-llvm/enum/enum-match.rs')
| -rw-r--r-- | tests/codegen-llvm/enum/enum-match.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen-llvm/enum/enum-match.rs b/tests/codegen-llvm/enum/enum-match.rs index 091c4e9adf4..20e2006e3eb 100644 --- a/tests/codegen-llvm/enum/enum-match.rs +++ b/tests/codegen-llvm/enum/enum-match.rs @@ -739,7 +739,7 @@ pub enum Tricky { const _: () = assert!(std::intrinsics::discriminant_value(&Tricky::V100) == 100); -// CHECK-LABEL: define noundef{{( range\(i8 [0-9]+, [0-9]+\))?}} i8 @discriminant6(i8 noundef %e) +// CHECK-LABEL: define noundef{{( range\(i8 [0-9]+, [0-9]+\))?}} i8 @discriminant6(i8 noundef{{( zeroext)?}} %e) // CHECK-NEXT: start: // CHECK-NEXT: %[[REL_VAR:.+]] = add i8 %e, -66 // CHECK-NEXT: %[[IS_NICHE:.+]] = icmp ult i8 %[[REL_VAR]], -56 |
