24 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 62; RUN: llc < %s -mtriple=i686-linux-gnu | FileCheck %s --check-prefixes=X863; RUN: llc < %s -mtriple=i686-linux-gnu -fast-isel -fast-isel-abort=1 | FileCheck %s --check-prefixes=X864; RUN: llc < %s -mtriple=i686-linux-gnu -global-isel -global-isel-abort=1 | FileCheck %s --check-prefixes=X865; RUN: llc < %s -mtriple=x86_64-linux-gnu | FileCheck %s --check-prefixes=X646; RUN: llc < %s -mtriple=x86_64-linux-gnu -fast-isel -fast-isel-abort=1 | FileCheck %s --check-prefixes=X647; RUN: llc < %s -mtriple=x86_64-linux-gnu -global-isel -global-isel-abort=1 | FileCheck %s --check-prefixes=X648 9; The src array should be in R10 or ECX register due to nest attribute10define i32 @nest_arg(ptr nest %src) {11; X86-LABEL: nest_arg:12; X86: # %bb.0:13; X86-NEXT: movl 8(%ecx), %eax14; X86-NEXT: retl15;16; X64-LABEL: nest_arg:17; X64: # %bb.0:18; X64-NEXT: movl 8(%r10), %eax19; X64-NEXT: retq20 %off = getelementptr [3 x i32], ptr %src, i32 0, i32 221 %ret = load i32, ptr %off22 ret i32 %ret23}24