Evan Cheng | 99b653c | 2009-12-15 00:41:36 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s |
2 | |||||
3 | define zeroext i16 @t1(i16 zeroext %x) nounwind readnone ssp { | ||||
4 | entry: | ||||
5 | ; CHECK: t1: | ||||
6 | ; CHECK: seta %al | ||||
7 | ; CHECK: movzbl %al, %eax | ||||
8 | ; CHECK: shll $5, %eax | ||||
9 | %0 = icmp ugt i16 %x, 26 ; <i1> [#uses=1] | ||||
10 | %iftmp.1.0 = select i1 %0, i16 32, i16 0 ; <i16> [#uses=1] | ||||
11 | ret i16 %iftmp.1.0 | ||||
12 | } | ||||
13 |