xref: /llvm-project/llvm/test/CodeGen/X86/load-local-v3i129.ll (revision 51f1cb5355d296ccb7756944d0545d9c96066b78)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --no_x86_scrub_sp
2; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefix=FAST-SHLD
3; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+slow-shld | FileCheck %s --check-prefix=SLOW-SHLD
4
5define void @_start() nounwind {
6; FAST-SHLD-LABEL: _start:
7; FAST-SHLD:       # %bb.0: # %Entry
8; FAST-SHLD-NEXT:    movq -40(%rsp), %rax
9; FAST-SHLD-NEXT:    movq -32(%rsp), %rcx
10; FAST-SHLD-NEXT:    movq %rcx, %rdx
11; FAST-SHLD-NEXT:    shlq $62, %rdx
12; FAST-SHLD-NEXT:    shrq $2, %rcx
13; FAST-SHLD-NEXT:    shldq $2, %rdx, %rcx
14; FAST-SHLD-NEXT:    andq $-4, %rax
15; FAST-SHLD-NEXT:    incq %rax
16; FAST-SHLD-NEXT:    movq %rax, -40(%rsp)
17; FAST-SHLD-NEXT:    movq %rcx, -32(%rsp)
18; FAST-SHLD-NEXT:    orq $-2, -56(%rsp)
19; FAST-SHLD-NEXT:    movq $-1, -48(%rsp)
20; FAST-SHLD-NEXT:    retq
21;
22; SLOW-SHLD-LABEL: _start:
23; SLOW-SHLD:       # %bb.0: # %Entry
24; SLOW-SHLD-NEXT:    movq -40(%rsp), %rax
25; SLOW-SHLD-NEXT:    andq $-4, %rax
26; SLOW-SHLD-NEXT:    incq %rax
27; SLOW-SHLD-NEXT:    movq %rax, -40(%rsp)
28; SLOW-SHLD-NEXT:    orq $-2, -56(%rsp)
29; SLOW-SHLD-NEXT:    movq $-1, -48(%rsp)
30; SLOW-SHLD-NEXT:    retq
31Entry:
32  %y = alloca <3 x i129>, align 16
33  %L = load <3 x i129>, ptr %y
34  %I1 = insertelement <3 x i129> %L, i129 340282366920938463463374607431768211455, i32 1
35  store <3 x i129> %I1, ptr %y
36  ret void
37}
38