Include optional dso_local marker for functions in enum-match.rs
This commit is contained in:
parent
cacb9eed38
commit
9dbd2bb85c
1 changed files with 6 additions and 6 deletions
|
@ -15,7 +15,7 @@ pub enum Enum0 {
|
|||
B,
|
||||
}
|
||||
|
||||
// CHECK-LABEL: define noundef{{( range\(i8 [0-9]+, [0-9]+\))?}} i8 @match0(i8{{.+}}%0)
|
||||
// CHECK-LABEL: define{{( dso_local)?}} noundef{{( range\(i8 [0-9]+, [0-9]+\))?}} i8 @match0(i8{{.+}}%0)
|
||||
// CHECK-NEXT: start:
|
||||
// CHECK-NEXT: %[[IS_B:.+]] = icmp eq i8 %0, 2
|
||||
// CHECK-NEXT: %[[TRUNC:.+]] = and i8 %0, 1
|
||||
|
@ -37,7 +37,7 @@ pub enum Enum1 {
|
|||
C,
|
||||
}
|
||||
|
||||
// CHECK-LABEL: define noundef{{( range\(i8 [0-9]+, [0-9]+\))?}} i8 @match1(i8{{.+}}%0)
|
||||
// CHECK-LABEL: define{{( dso_local)?}} noundef{{( range\(i8 [0-9]+, [0-9]+\))?}} i8 @match1(i8{{.+}}%0)
|
||||
// CHECK-NEXT: start:
|
||||
// CHECK-NEXT: %[[REL_VAR:.+]] = add{{( nsw)?}} i8 %0, -2
|
||||
// CHECK-NEXT: %[[REL_VAR_WIDE:.+]] = zext i8 %[[REL_VAR]] to i64
|
||||
|
@ -98,7 +98,7 @@ pub enum Enum2 {
|
|||
E,
|
||||
}
|
||||
|
||||
// CHECK-LABEL: define noundef{{( range\(i8 [0-9]+, [0-9]+\))?}} i8 @match2(i8{{.+}}%0)
|
||||
// CHECK-LABEL: define{{( dso_local)?}} noundef{{( range\(i8 [0-9]+, [0-9]+\))?}} i8 @match2(i8{{.+}}%0)
|
||||
// CHECK-NEXT: start:
|
||||
// CHECK-NEXT: %[[REL_VAR:.+]] = add i8 %0, 2
|
||||
// CHECK-NEXT: %[[REL_VAR_WIDE:.+]] = zext i8 %[[REL_VAR]] to i64
|
||||
|
@ -121,7 +121,7 @@ pub fn match2(e: Enum2) -> u8 {
|
|||
// And make sure it works even if the niched scalar is a pointer.
|
||||
// (For example, that we don't try to `sub` on pointers.)
|
||||
|
||||
// CHECK-LABEL: define noundef{{( range\(i16 -?[0-9]+, -?[0-9]+\))?}} i16 @match3(ptr{{.+}}%0)
|
||||
// CHECK-LABEL: define{{( dso_local)?}} noundef{{( range\(i16 -?[0-9]+, -?[0-9]+\))?}} i16 @match3(ptr{{.+}}%0)
|
||||
// CHECK-NEXT: start:
|
||||
// CHECK-NEXT: %[[IS_NULL:.+]] = icmp eq ptr %0, null
|
||||
// CHECK-NEXT: br i1 %[[IS_NULL]]
|
||||
|
@ -145,7 +145,7 @@ pub enum MiddleNiche {
|
|||
E,
|
||||
}
|
||||
|
||||
// CHECK-LABEL: define noundef{{( range\(i8 -?[0-9]+, -?[0-9]+\))?}} i8 @match4(i8{{.+}}%0)
|
||||
// CHECK-LABEL: define{{( dso_local)?}} noundef{{( range\(i8 -?[0-9]+, -?[0-9]+\))?}} i8 @match4(i8{{.+}}%0)
|
||||
// CHECK-NEXT: start:
|
||||
// CHECK-NEXT: %[[REL_VAR:.+]] = add{{( nsw)?}} i8 %0, -2
|
||||
// CHECK-NEXT: %[[IS_NICHE:.+]] = icmp ult i8 %[[REL_VAR]], 5
|
||||
|
@ -449,7 +449,7 @@ pub enum HugeVariantIndex {
|
|||
Possible259,
|
||||
}
|
||||
|
||||
// CHECK-LABEL: define noundef{{( range\(i8 [0-9]+, [0-9]+\))?}} i8 @match5(i8{{.+}}%0)
|
||||
// CHECK-LABEL: define{{( dso_local)?}} noundef{{( range\(i8 [0-9]+, [0-9]+\))?}} i8 @match5(i8{{.+}}%0)
|
||||
// CHECK-NEXT: start:
|
||||
// CHECK-NEXT: %[[REL_VAR:.+]] = add{{( nsw)?}} i8 %0, -2
|
||||
// CHECK-NEXT: %[[REL_VAR_WIDE:.+]] = zext i8 %[[REL_VAR]] to i64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue