Skip to content

Commit 29f6c9e

Browse files
authored
Update and rename enum-aggregate-generic.rs to enum-aggregate.rs
Merge no-riscv64 and riscv64
1 parent 26e28a8 commit 29f6c9e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/codegen/enum/enum-aggregate-generic.rs renamed to tests/codegen/enum/enum-aggregate.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//@ compile-flags: -Copt-level=0 -Cno-prepopulate-passes
22
//@ min-llvm-version: 19
33
//@ only-64bit
4-
//@ ignore-riscv64
54

65
#![crate_type = "lib"]
76

@@ -28,15 +27,15 @@ fn make_none_bool() -> Option<bool> {
2827

2928
#[no_mangle]
3029
fn make_some_ordering(x: Ordering) -> Option<Ordering> {
31-
// CHECK-LABEL: i8 @make_some_ordering(i8 %x)
30+
// CHECK-LABEL: i8 @make_some_ordering(i8 {{.*}}%x)
3231
// CHECK-NEXT: start:
3332
// CHECK-NEXT: ret i8 %x
3433
Some(x)
3534
}
3635

3736
#[no_mangle]
3837
fn make_some_u16(x: u16) -> Option<u16> {
39-
// CHECK-LABEL: { i16, i16 } @make_some_u16(i16 %x)
38+
// CHECK-LABEL: { i16, i16 } @make_some_u16(i16 {{.*}}%x)
4039
// CHECK-NEXT: start:
4140
// CHECK-NEXT: %0 = insertvalue { i16, i16 } { i16 1, i16 poison }, i16 %x, 1
4241
// CHECK-NEXT: ret { i16, i16 } %0
@@ -53,7 +52,7 @@ fn make_none_u16() -> Option<u16> {
5352

5453
#[no_mangle]
5554
fn make_some_nzu32(x: NonZero<u32>) -> Option<NonZero<u32>> {
56-
// CHECK-LABEL: i32 @make_some_nzu32(i32 %x)
55+
// CHECK-LABEL: i32 @make_some_nzu32(i32 {{.*}}%x)
5756
// CHECK-NEXT: start:
5857
// CHECK-NEXT: ret i32 %x
5958
Some(x)
@@ -115,7 +114,7 @@ fn make_uninhabited_err_indirectly(n: Never) -> Result<u32, Never> {
115114
fn make_fully_uninhabited_result(v: u32, n: Never) -> Result<(u32, Never), (Never, u32)> {
116115
// Actually reaching this would be UB, so we don't actually build a result.
117116

118-
// CHECK-LABEL: { i32, i32 } @make_fully_uninhabited_result(i32 %v)
117+
// CHECK-LABEL: { i32, i32 } @make_fully_uninhabited_result(i32 {{.*}}%v)
119118
// CHECK-NEXT: start:
120119
// CHECK-NEXT: call void @llvm.trap()
121120
// CHECK-NEXT: call void @llvm.trap()

0 commit comments

Comments
 (0)