annotate test/CodeGen/X86/zext-shl.ll @ 121:803732b1fca8

LLVM 5.0
author kono
date Fri, 27 Oct 2017 17:07:41 +0900
parents 95c75e76d11b
children 3a76565eade5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
2 ; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
121
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
4 define i32 @t1(i8 zeroext %x) nounwind {
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 ; CHECK-LABEL: t1:
121
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
6 ; CHECK: # BB#0:
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
7 ; CHECK-NEXT: movzbl {{[0-9]+}}(%esp), %eax
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
8 ; CHECK-NEXT: shll $5, %eax
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
9 ; CHECK-NEXT: retl
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
10 %t0 = zext i8 %x to i16
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
11 %t1 = shl i16 %t0, 5
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
12 %t2 = zext i16 %t1 to i32
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
13 ret i32 %t2
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 }
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
121
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
16 define i32 @t2(i8 zeroext %x) nounwind {
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 ; CHECK-LABEL: t2:
121
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
18 ; CHECK: # BB#0:
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
19 ; CHECK-NEXT: movzbl {{[0-9]+}}(%esp), %eax
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
20 ; CHECK-NEXT: shrl $3, %eax
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
21 ; CHECK-NEXT: retl
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
22 %t0 = zext i8 %x to i16
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
23 %t1 = lshr i16 %t0, 3
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
24 %t2 = zext i16 %t1 to i32
803732b1fca8 LLVM 5.0
kono
parents: 0
diff changeset
25 ret i32 %t2
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 }