blob: d16e453c62697e73933a96ce9ed28ff506fdc88c [file] [log] [blame]
Coby Tayreef191fdc2017-09-26 13:28:05 +00001; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc -mtriple i386-unknown-linux-gnu < %s | FileCheck %s
3
4; Previously, a reference to SIL/DIL was being emitted
5; but those aren't available unless on a 64bit mode
6
7define void @t1(i8 signext %c) {
8; CHECK-LABEL: t1:
Francis Visoiu Mistrih25528d62017-12-04 17:18:51 +00009; CHECK: # %bb.0: # %entry
Coby Tayreef191fdc2017-09-26 13:28:05 +000010; CHECK-NEXT: pushl %edi
Coby Tayreef191fdc2017-09-26 13:28:05 +000011; CHECK-NEXT: .cfi_def_cfa_offset 8
Coby Tayreef191fdc2017-09-26 13:28:05 +000012; CHECK-NEXT: .cfi_offset %edi, -8
13; CHECK-NEXT: movzbl {{[0-9]+}}(%esp), %edi
Puyan Lotfi43e94b12018-01-31 22:04:26 +000014; CHECK-NEXT: # kill: def $di killed $di killed $edi
Coby Tayreef191fdc2017-09-26 13:28:05 +000015; CHECK-NEXT: #APP
16; CHECK-NEXT: #NO_APP
17; CHECK-NEXT: popl %edi
18; CHECK-NEXT: retl
19entry:
20 tail call void asm sideeffect "", "{di},~{dirflag},~{fpsr},~{flags}"(i8 %c)
21 ret void
22}
23
24define void @t2(i8 signext %c) {
25; CHECK-LABEL: t2:
Francis Visoiu Mistrih25528d62017-12-04 17:18:51 +000026; CHECK: # %bb.0: # %entry
Coby Tayreef191fdc2017-09-26 13:28:05 +000027; CHECK-NEXT: pushl %esi
Coby Tayreef191fdc2017-09-26 13:28:05 +000028; CHECK-NEXT: .cfi_def_cfa_offset 8
Coby Tayreef191fdc2017-09-26 13:28:05 +000029; CHECK-NEXT: .cfi_offset %esi, -8
30; CHECK-NEXT: movzbl {{[0-9]+}}(%esp), %esi
Puyan Lotfi43e94b12018-01-31 22:04:26 +000031; CHECK-NEXT: # kill: def $si killed $si killed $esi
Coby Tayreef191fdc2017-09-26 13:28:05 +000032; CHECK-NEXT: #APP
33; CHECK-NEXT: #NO_APP
34; CHECK-NEXT: popl %esi
Coby Tayreef191fdc2017-09-26 13:28:05 +000035; CHECK-NEXT: retl
36entry:
37 tail call void asm sideeffect "", "{si},~{dirflag},~{fpsr},~{flags}"(i8 %c)
38 ret void
39}
40