diff options
author | Preston Gurd <preston.gurd@intel.com> | 2013-09-16 22:22:07 +0000 |
---|---|---|
committer | Preston Gurd <preston.gurd@intel.com> | 2013-09-16 22:22:07 +0000 |
commit | 0c190ad93f12027ec158eb2b0558d4ca375ecc39 (patch) | |
tree | 19dc77812936fed24245fc894ef34ee0c21630c7 /test/CodeGen/X86/movbe.ll | |
parent | b06ea25b4c4cff341194279e01c08d23fa022378 (diff) | |
download | external_llvm-0c190ad93f12027ec158eb2b0558d4ca375ecc39.zip external_llvm-0c190ad93f12027ec158eb2b0558d4ca375ecc39.tar.gz external_llvm-0c190ad93f12027ec158eb2b0558d4ca375ecc39.tar.bz2 |
Add Atom Silvermont (slm) tests
- check that -mcpu=slm uses the call register indirect optimization
- check that -mcpu=slm runs the scheduler
- check that -mcpu=slm supports the movbe instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190814 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/movbe.ll')
-rw-r--r-- | test/CodeGen/X86/movbe.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/X86/movbe.ll b/test/CodeGen/X86/movbe.ll index aa58c10..3f459be 100644 --- a/test/CodeGen/X86/movbe.ll +++ b/test/CodeGen/X86/movbe.ll @@ -1,4 +1,5 @@ ; RUN: llc -mtriple=x86_64-linux -mcpu=atom < %s | FileCheck %s +; RUN: llc -mtriple=x86_64-linux -mcpu=slm < %s | FileCheck %s -check-prefix=SLM declare i32 @llvm.bswap.i32(i32) nounwind readnone declare i64 @llvm.bswap.i64(i64) nounwind readnone @@ -9,6 +10,8 @@ define void @test1(i32* nocapture %x, i32 %y) nounwind { ret void ; CHECK-LABEL: test1: ; CHECK: movbel %esi, (%rdi) +; SLM-LABEL: test1: +; SLM: movbel %esi, (%rdi) } define i32 @test2(i32* %x) nounwind { @@ -17,6 +20,8 @@ define i32 @test2(i32* %x) nounwind { ret i32 %bswap ; CHECK-LABEL: test2: ; CHECK: movbel (%rdi), %eax +; SLM-LABEL: test2: +; SLM: movbel (%rdi), %eax } define void @test3(i64* %x, i64 %y) nounwind { @@ -25,6 +30,8 @@ define void @test3(i64* %x, i64 %y) nounwind { ret void ; CHECK-LABEL: test3: ; CHECK: movbeq %rsi, (%rdi) +; SLM-LABEL: test3: +; SLM: movbeq %rsi, (%rdi) } define i64 @test4(i64* %x) nounwind { @@ -33,4 +40,6 @@ define i64 @test4(i64* %x) nounwind { ret i64 %bswap ; CHECK-LABEL: test4: ; CHECK: movbeq (%rdi), %rax +; SLM-LABEL: test4: +; SLM: movbeq (%rdi), %rax } |