From 9ec7e0297d03c0d8c673c05f6094093565e10f7b Mon Sep 17 00:00:00 2001 From: "Andrew V. Tischenko" Date: Thu, 27 Apr 2017 10:20:35 +0000 Subject: [PATCH] 2 tests that were lost in rL301390 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301529 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/inline-0bh.ll | 17 +++++++++++++++++ test/MC/X86/pr27884.s | 7 +++++++ 2 files changed, 24 insertions(+) create mode 100644 test/CodeGen/X86/inline-0bh.ll create mode 100644 test/MC/X86/pr27884.s diff --git a/test/CodeGen/X86/inline-0bh.ll b/test/CodeGen/X86/inline-0bh.ll new file mode 100644 index 00000000000..ceef395aa14 --- /dev/null +++ b/test/CodeGen/X86/inline-0bh.ll @@ -0,0 +1,17 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s + +; Function Attrs: noinline nounwind +define i32 @PR31007() { +; CHECK-LABEL: PR31007: +; CHECK: # BB#0: # %entry +; CHECK-NEXT: #APP +; CHECK : addb $11, %al +; CHECK: #NO_APP +; CHECK-NEXT: xorl %eax, %eax +; CHECK-NEXT: retq +entry: + call void asm sideeffect inteldialect "add al,$$0bH", "~{al},~{flags},~{dirflag},~{fpsr},~{flags}"() + ret i32 0 +} + diff --git a/test/MC/X86/pr27884.s b/test/MC/X86/pr27884.s new file mode 100644 index 00000000000..edd4e8d34a9 --- /dev/null +++ b/test/MC/X86/pr27884.s @@ -0,0 +1,7 @@ +// RUN: llvm-mc -triple x86_64-unknown-unknown %s + +.intel_syntax +add rbx, 0B0h +add rbx, 0b0h +add rax, 0A0h +add rax, 0a0h -- 2.50.1