1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -fast-isel -mtriple=i686-unknown-unknown -O0 -mcpu=knl | FileCheck %s
5 source_filename = "convert"
6 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
7 target triple = "x86_64-unknown-linux-gnu"
9 define ptr @japi1_convert_690(ptr, ptr, i32) {
10 ; CHECK-LABEL: japi1_convert_690:
11 ; CHECK: # %bb.0: # %top
12 ; CHECK-NEXT: subl $12, %esp
13 ; CHECK-NEXT: .cfi_def_cfa_offset 16
14 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
15 ; CHECK-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
16 ; CHECK-NEXT: calll julia.gc_root_decl@PLT
17 ; CHECK-NEXT: movl %eax, {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Spill
18 ; CHECK-NEXT: calll jl_get_ptls_states@PLT
19 ; CHECK-NEXT: # kill: def $ecx killed $eax
20 ; CHECK-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %eax # 4-byte Reload
21 ; CHECK-NEXT: movl 4(%eax), %eax
22 ; CHECK-NEXT: movb (%eax), %al
23 ; CHECK-NEXT: andb $1, %al
24 ; CHECK-NEXT: movzbl %al, %eax
25 ; CHECK-NEXT: movl %eax, (%esp)
26 ; CHECK-NEXT: calll jl_box_int32@PLT
27 ; CHECK-NEXT: movl {{[-0-9]+}}(%e{{[sb]}}p), %ecx # 4-byte Reload
28 ; CHECK-NEXT: movl %eax, (%ecx)
29 ; CHECK-NEXT: addl $12, %esp
30 ; CHECK-NEXT: .cfi_def_cfa_offset 4
34 store volatile ptr %1, ptr %3
35 %4 = call ptr @julia.gc_root_decl()
36 %5 = call ptr @jl_get_ptls_states()
37 %6 = getelementptr ptr, ptr %5, i64 3
39 %8 = getelementptr ptr, ptr %1, i64 1
42 %11 = trunc i8 %10 to i1
43 %12 = zext i1 %11 to i8
44 %13 = zext i8 %12 to i32
45 %14 = call ptr @jl_box_int32(i32 signext %13)
50 declare ptr @jl_get_ptls_states()
52 declare ptr @jl_box_int32(i32)
54 declare ptr @julia.gc_root_decl()