[llvm] r361906 - [AArch64] auto-generate complete test checks; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Tue May 28 18:35:10 PDT 2019


Author: spatel
Date: Tue May 28 18:35:10 2019
New Revision: 361906

URL: http://llvm.org/viewvc/llvm-project?rev=361906&view=rev
Log:
[AArch64] auto-generate complete test checks; NFC

Modified:
    llvm/trunk/test/CodeGen/AArch64/strqu.ll

Modified: llvm/trunk/test/CodeGen/AArch64/strqu.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AArch64/strqu.ll?rev=361906&r1=361905&r2=361906&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/AArch64/strqu.ll (original)
+++ llvm/trunk/test/CodeGen/AArch64/strqu.ll Tue May 28 18:35:10 2019
@@ -1,28 +1,48 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
 ; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64-linux-gnu    | FileCheck --check-prefixes=CHECK,NOSPLIT %s
 ; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64_be-linux-gnu | FileCheck --check-prefixes=CHECK,NOSPLIT %s
 ; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64-linux-gnu    -mcpu=exynos-m1 | FileCheck --check-prefixes=CHECK,NOSPLIT %s
 ; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64_be-linux-gnu -mcpu=exynos-m1 | FileCheck --check-prefixes=CHECK,SPLIT %s
 
-; CHECK-LABEL: test_split_f:
-; NOSPLIT: str q{{[0-9]+}}, [x{{[0-9]+}}]
-; SPLIT: st1 { v{{[0-9]+}}.2s }, [x{{[0-9]+}}]
-; SPLIT: st1 { v{{[0-9]+}}.2s }, [x{{[0-9]+}}]
 define void @test_split_f(<4 x float> %val, <4 x float>* %addr) {
+; NOSPLIT-LABEL: test_split_f:
+; NOSPLIT:       // %bb.0:
+; NOSPLIT-NEXT:    str q0, [x0]
+; NOSPLIT-NEXT:    ret
+;
+; SPLIT-LABEL: test_split_f:
+; SPLIT:       // %bb.0:
+; SPLIT-NEXT:    rev64 v0.4s, v0.4s
+; SPLIT-NEXT:    ext v0.16b, v0.16b, v0.16b, #8
+; SPLIT-NEXT:    st1 { v0.2s }, [x0]
+; SPLIT-NEXT:    ext v0.16b, v0.16b, v0.16b, #8
+; SPLIT-NEXT:    add x8, x0, #8 // =8
+; SPLIT-NEXT:    st1 { v0.2s }, [x8]
+; SPLIT-NEXT:    ret
   store <4 x float> %val, <4 x float>* %addr, align 8
   ret void
 }
 
-; CHECK-LABEL: test_split_d:
-; NOSPLIT: str q{{[0-9]+}}, [x{{[0-9]+}}]
-; SPLIT: st1 { v{{[0-9]+}}.2d }, [x{{[0-9]+}}]
 define void @test_split_d(<2 x double> %val, <2 x double>* %addr) {
+; NOSPLIT-LABEL: test_split_d:
+; NOSPLIT:       // %bb.0:
+; NOSPLIT-NEXT:    str q0, [x0]
+; NOSPLIT-NEXT:    ret
+;
+; SPLIT-LABEL: test_split_d:
+; SPLIT:       // %bb.0:
+; SPLIT-NEXT:    ext v0.16b, v0.16b, v0.16b, #8
+; SPLIT-NEXT:    st1 { v0.2d }, [x0]
+; SPLIT-NEXT:    ret
   store <2 x double> %val, <2 x double>* %addr, align 8
   ret void
 }
 
-; CHECK-LABEL: test_split_128:
-; CHECK: str q{{[0-9]+}}, [x{{[0-9]+}}]
 define void @test_split_128(fp128 %val, fp128* %addr) {
+; CHECK-LABEL: test_split_128:
+; CHECK:       // %bb.0:
+; CHECK-NEXT:    str q0, [x0]
+; CHECK-NEXT:    ret
   store fp128 %val, fp128* %addr, align 8
   ret void
 }




More information about the llvm-commits mailing list