[X86] Add test case that was supposed to go with r360102.
authorCraig Topper <craig.topper@intel.com>
Fri, 24 May 2019 04:46:56 +0000 (04:46 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 24 May 2019 04:46:56 +0000 (04:46 +0000)
Found in my working area. Guess I forgot 'git add' before committing.

llvm-svn: 361599

llvm/test/CodeGen/X86/asm-reg-type-mismatch-avx512.ll [new file with mode: 0644]

diff --git a/llvm/test/CodeGen/X86/asm-reg-type-mismatch-avx512.ll b/llvm/test/CodeGen/X86/asm-reg-type-mismatch-avx512.ll
new file mode 100644 (file)
index 0000000..1c5e1ce
--- /dev/null
@@ -0,0 +1,15 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mattr=avx512f | FileCheck %s
+
+define i64 @test1() nounwind {
+; CHECK-LABEL: test1:
+; CHECK:       # %bb.0: # %entry
+; CHECK-NEXT:    #APP
+; CHECK-NEXT:    vmovq {{.*#+}} xmm16 = mem[0],zero
+; CHECK-NEXT:    #NO_APP
+; CHECK-NEXT:    vmovq %xmm16, %rax
+; CHECK-NEXT:    retq
+entry:
+  %0 = tail call i64 asm sideeffect "vmovq $1, $0", "={xmm16},*m,~{dirflag},~{fpsr},~{flags}"(i64* null) nounwind
+  ret i64 %0
+}