diff --git a/tests/codegen-llvm/autodiff/abi_handling.rs b/tests/codegen-llvm/autodiff/abi_handling.rs index a8bc482fc293f..165825655d527 100644 --- a/tests/codegen-llvm/autodiff/abi_handling.rs +++ b/tests/codegen-llvm/autodiff/abi_handling.rs @@ -46,7 +46,7 @@ fn square(x: f32) -> f32 { // CHECK-NEXT: Function Attrs // debug-NEXT: define internal float // debug-SAME: (ptr {{.*}}%x) -// release-NEXT: define internal fastcc noundef float +// release-NEXT: define internal fastcc {{(noundef )?}}float // release-SAME: (float %x.0.val, float %x.4.val) #[autodiff_forward(df1, Dual, Dual)] #[inline(never)] @@ -58,15 +58,15 @@ fn f1(x: &[f32; 2]) -> f32 { // CHECK-NEXT: Function Attrs // debug-NEXT: define internal { float, float } // debug-SAME: (ptr %f, float %x, float %dret) -// release-NEXT: define internal fastcc noundef float -// release-SAME: (float noundef %x) +// release-NEXT: define internal fastcc {{(noundef )?}}float +// release-SAME: (float {{(noundef )?}}%x) // CHECK-LABEL: ; abi_handling::f2 // CHECK-NEXT: Function Attrs // debug-NEXT: define internal float // debug-SAME: (ptr %f, float %x) -// release-NEXT: define internal fastcc noundef float -// release-SAME: (float noundef %x) +// release-NEXT: define internal fastcc {{(noundef )?}}float +// release-SAME: (float {{(noundef )?}}%x) #[autodiff_reverse(df2, Const, Active, Active)] #[inline(never)] fn f2(f: fn(f32) -> f32, x: f32) -> f32 { @@ -77,14 +77,14 @@ fn f2(f: fn(f32) -> f32, x: f32) -> f32 { // CHECK-NEXT: Function Attrs // debug-NEXT: define internal { float, float } // debug-SAME: (ptr align 4 %x, ptr align 4 %bx_0, ptr align 4 %y, ptr align 4 %by_0) -// release-NEXT: define internal fastcc float +// release-NEXT: define internal fastcc { float, float } // release-SAME: (float %x.0.val) // CHECK-LABEL: ; abi_handling::f3 // CHECK-NEXT: Function Attrs // debug-NEXT: define internal float // debug-SAME: (ptr {{.*}}%x, ptr {{.*}}%y) -// release-NEXT: define internal fastcc noundef float +// release-NEXT: define internal fastcc {{(noundef )?}}float // release-SAME: (float %x.0.val) #[autodiff_forward(df3, Dual, Dual, Dual)] #[inline(never)] @@ -97,14 +97,14 @@ fn f3<'a>(x: &'a f32, y: &'a f32) -> f32 { // debug-NEXT: define internal { float, float } // debug-SAME: (float %x.0, float %x.1, float %bx_0.0, float %bx_0.1) // release-NEXT: define internal fastcc { float, float } -// release-SAME: (float noundef %x.0, float noundef %x.1) +// release-SAME: (float {{(noundef )?}}%x.0, float {{(noundef )?}}%x.1) // CHECK-LABEL: ; abi_handling::f4 // CHECK-NEXT: Function Attrs // debug-NEXT: define internal float // debug-SAME: (float %x.0, float %x.1) -// release-NEXT: define internal fastcc noundef float -// release-SAME: (float noundef %x.0, float noundef %x.1) +// release-NEXT: define internal fastcc {{(noundef )?}}float +// release-SAME: (float {{(noundef )?}}%x.0, float {{(noundef )?}}%x.1) #[autodiff_forward(df4, Dual, Dual)] #[inline(never)] fn f4(x: (f32, f32)) -> f32 { @@ -116,14 +116,14 @@ fn f4(x: (f32, f32)) -> f32 { // debug-NEXT: define internal { float, float } // debug-SAME: (float %i.0, float %i.1, float %bi_0.0, float %bi_0.1) // release-NEXT: define internal fastcc { float, float } -// release-SAME: (float noundef %i.0, float noundef %i.1) +// release-SAME: (float {{(noundef )?}}%i.0, float {{(noundef )?}}%i.1) // CHECK-LABEL: ; abi_handling::f5 // CHECK-NEXT: Function Attrs // debug-NEXT: define internal float // debug-SAME: (float %i.0, float %i.1) -// release-NEXT: define internal fastcc noundef float -// release-SAME: (float noundef %i.0, float noundef %i.1) +// release-NEXT: define internal fastcc {{(noundef )?}}float +// release-SAME: (float {{(noundef )?}}%i.0, float {{(noundef )?}}%i.1) #[autodiff_forward(df5, Dual, Dual)] #[inline(never)] fn f5(i: Input) -> f32 { @@ -135,15 +135,15 @@ fn f5(i: Input) -> f32 { // debug-NEXT: define internal { float, float } // debug-SAME: (float %i.0, float %i.1, float %bi_0.0, float %bi_0.1) // release-NEXT: define internal fastcc { float, float } -// release-SAME: float noundef %i.0, float noundef %i.1 -// release-SAME: float noundef %bi_0.0, float noundef %bi_0.1 +// release-SAME: float {{(noundef )?}}%i.0, float {{(noundef )?}}%i.1 +// release-SAME: float {{(noundef )?}}%bi_0.0, float {{(noundef )?}}%bi_0.1 // CHECK-LABEL: ; abi_handling::f6 // CHECK-NEXT: Function Attrs // debug-NEXT: define internal float // debug-SAME: (float %i.0, float %i.1) -// release-NEXT: define internal fastcc noundef float -// release-SAME: (float noundef %i.0, float noundef %i.1) +// release-NEXT: define internal fastcc {{(noundef )?}}float +// release-SAME: (float {{(noundef )?}}%i.0, float {{(noundef )?}}%i.1) #[autodiff_forward(df6, Dual, Dual)] #[inline(never)] fn f6(i: NestedInput) -> f32 { @@ -161,7 +161,7 @@ fn f6(i: NestedInput) -> f32 { // CHECK-NEXT: Function Attrs // debug-NEXT: define internal float // debug-SAME: (ptr {{.*}}%x.0, ptr {{.*}}%x.1) -// release-NEXT: define internal fastcc noundef float +// release-NEXT: define internal fastcc {{(noundef )?}}float // release-SAME: (float %x.0.0.val, float %x.1.0.val) #[autodiff_forward(df7, Dual, Dual)] #[inline(never)]