16 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc -mtriple=i386-linux-gnu -mattr=+cmov,+ndd < %s | FileCheck %s3define i32 @test(i1 %cmp, i32 %x, i32 %y) nounwind {4; CHECK-LABEL: test:5; CHECK: # %bb.0: # %entry6; CHECK-NEXT: testb $1, {{[0-9]+}}(%esp)7; CHECK-NEXT: leal {{[0-9]+}}(%esp), %eax8; CHECK-NEXT: leal {{[0-9]+}}(%esp), %ecx9; CHECK-NEXT: cmovnel %eax, %ecx10; CHECK-NEXT: movl (%ecx), %eax11; CHECK-NEXT: retl12entry:13 %cmov = select i1 %cmp, i32 %x, i32 %y14 ret i32 %cmov15}16