[llvm] 26d974d - [X86] Add PR19752 test case

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 7 10:09:20 PDT 2022


Author: Simon Pilgrim
Date: 2022-04-07T18:08:59+01:00
New Revision: 26d974dc3a2c9d1e92246d2168eb6589ce52a7de

URL: https://github.com/llvm/llvm-project/commit/26d974dc3a2c9d1e92246d2168eb6589ce52a7de
DIFF: https://github.com/llvm/llvm-project/commit/26d974dc3a2c9d1e92246d2168eb6589ce52a7de.diff

LOG: [X86] Add PR19752 test case

Test coverage for Issue #20126

Added: 
    llvm/test/CodeGen/X86/pr19752.ll

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/X86/pr19752.ll b/llvm/test/CodeGen/X86/pr19752.ll
new file mode 100644
index 0000000000000..0dd6895ecb4be
--- /dev/null
+++ b/llvm/test/CodeGen/X86/pr19752.ll
@@ -0,0 +1,15 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s | FileCheck %s
+
+target datalayout = "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128"
+target triple = "i386---elf"
+
+define void @test() {
+; CHECK-LABEL: test:
+; CHECK:       # %bb.0:
+; CHECK-NEXT:    #APP
+; CHECK-NEXT:    movl %fs:0, %eax
+; CHECK-NEXT:    #NO_APP
+  %tmp = tail call i64 asm "movl %fs:${1:a}, ${0:k}", "=q,irm,~{dirflag},~{fpsr},~{flags}"(i64 0)
+  unreachable
+}


        


More information about the llvm-commits mailing list