about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2023-02-02 22:15:23 -0800
committerScott McMurray <scottmcm@users.noreply.github.com>2023-02-04 16:41:35 -0800
commit52df0558ea349fa65036e61f0a647ea8072ec3f5 (patch)
tree09e1c9880ea4b6787bf22e29ad262fc643ff7e35 /tests
parent5a7342c3dde43c96a71bc27995030896342761f6 (diff)
downloadrust-52df0558ea349fa65036e61f0a647ea8072ec3f5.tar.gz
rust-52df0558ea349fa65036e61f0a647ea8072ec3f5.zip
Stop forcing `array::map` through an unnecessary `Result`
Diffstat (limited to 'tests')
-rw-r--r--tests/codegen/array-map.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/codegen/array-map.rs b/tests/codegen/array-map.rs
index 37585371a32..1154659eea5 100644
--- a/tests/codegen/array-map.rs
+++ b/tests/codegen/array-map.rs
@@ -1,4 +1,4 @@
-// compile-flags: -C opt-level=3 -C target-cpu=x86-64-v3 -C llvm-args=-x86-asm-syntax=intel --emit=llvm-ir,asm
+// compile-flags: -C opt-level=3 -C target-cpu=x86-64-v3
 // no-system-llvm
 // only-x86_64
 // ignore-debug (the extra assertions get in the way)
@@ -40,8 +40,7 @@ pub fn short_integer_zip_map(x: [u32; 8], y: [u32; 8]) -> [u32; 8] {
 #[no_mangle]
 pub fn long_integer_map(x: [u32; 64]) -> [u32; 64] {
     // CHECK: start:
-    // CHECK-NEXT: alloca [{{64|65}} x i32]
-    // CHECK-NEXT: alloca [{{64|65}} x i32]
+    // CHECK-NEXT: alloca [64 x i32]
     // CHECK-NEXT: alloca %"core::mem::manually_drop::ManuallyDrop<[u32; 64]>"
     // CHECK-NOT: alloca
     x.map(|x| 2 * x + 1)