[llvm] r284982 - [x86] regenerate checks
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 24 08:43:41 PDT 2016
Author: spatel
Date: Mon Oct 24 10:43:40 2016
New Revision: 284982
URL: http://llvm.org/viewvc/llvm-project?rev=284982&view=rev
Log:
[x86] regenerate checks
Modified:
llvm/trunk/test/CodeGen/X86/select_const.ll
Modified: llvm/trunk/test/CodeGen/X86/select_const.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/select_const.ll?rev=284982&r1=284981&r2=284982&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/select_const.ll (original)
+++ llvm/trunk/test/CodeGen/X86/select_const.ll Mon Oct 24 10:43:40 2016
@@ -1,16 +1,17 @@
-; RUN: llc < %s -mtriple=x86_64-apple-darwin10 -mcpu=corei7 | FileCheck %s
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
-define i64 @test1(i64 %x) nounwind {
-entry:
+define i64 @select_2_or_inc(i64 %x) {
+; CHECK-LABEL: select_2_or_inc:
+; CHECK: # BB#0:
+; CHECK-NEXT: leaq 1(%rdi), %rax
+; CHECK-NEXT: cmpq $2, %rdi
+; CHECK-NEXT: cmoveq %rdi, %rax
+; CHECK-NEXT: retq
+;
%cmp = icmp eq i64 %x, 2
%add = add i64 %x, 1
%retval.0 = select i1 %cmp, i64 2, i64 %add
ret i64 %retval.0
-
-; CHECK-LABEL: test1:
-; CHECK: leaq 1(%rdi), %rax
-; CHECK: cmpq $2, %rdi
-; CHECK: cmoveq %rdi, %rax
-; CHECK: ret
-
}
+
More information about the llvm-commits
mailing list