summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/shift-one.ll
diff options
context:
space:
mode:
authorAmaury Sechet <deadalnix@gmail.com>2019-08-20 23:47:19 +0000
committerAmaury Sechet <deadalnix@gmail.com>2019-08-20 23:47:19 +0000
commit4ccf5ba941366e7551dac05419847484b93de1cf (patch)
treec5b4de2a6d688e424cc1a2395ffda16c099f3bff /llvm/test/CodeGen/X86/shift-one.ll
parented757305b848b3ec163079dc1e0a2c6853eaf127 (diff)
downloadbcm5719-llvm-4ccf5ba941366e7551dac05419847484b93de1cf.tar.gz
bcm5719-llvm-4ccf5ba941366e7551dac05419847484b93de1cf.zip
[X86] Automatically generate shift tests. NFC
llvm-svn: 369475
Diffstat (limited to 'llvm/test/CodeGen/X86/shift-one.ll')
-rw-r--r--llvm/test/CodeGen/X86/shift-one.ll8
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/shift-one.ll b/llvm/test/CodeGen/X86/shift-one.ll
index d961eb1451b..c4c50afb263 100644
--- a/llvm/test/CodeGen/X86/shift-one.ll
+++ b/llvm/test/CodeGen/X86/shift-one.ll
@@ -1,8 +1,14 @@
-; RUN: llc < %s -mtriple=i686-- | not grep leal
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=i686-- | FileCheck %s
@x = external global i32 ; <i32*> [#uses=1]
define i32 @test() {
+; CHECK-LABEL: test:
+; CHECK: # %bb.0:
+; CHECK-NEXT: movl x, %eax
+; CHECK-NEXT: addl %eax, %eax
+; CHECK-NEXT: retl
%tmp.0 = load i32, i32* @x ; <i32> [#uses=1]
%tmp.1 = shl i32 %tmp.0, 1 ; <i32> [#uses=1]
ret i32 %tmp.1
OpenPOWER on IntegriCloud