brintos

brintos / llvm-project-archived public Read only

0
0
Text · 574 B · bf97788 Raw
16 lines · plain
1; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -x86-speculative-load-hardening | FileCheck %s2 3define i32 @foo(ptr %0) {4; CHECK-LABEL: foo:5; CHECK:         callq *(%{{.*}})6; CHECK-NEXT:  .Lslh_ret_addr0:7; CHECK-NEXT:    movq %rsp, %rcx8; CHECK-NEXT:    movq -{{[0-9]+}}(%rsp), %rax9; CHECK-NEXT:    sarq $63, %rcx10; CHECK-NEXT:    cmpq $.Lslh_ret_addr0, %rax11  %2 = load ptr, ptr %012  call void asm sideeffect "", "~{bx},~{cx},~{dx},~{bp},~{si},~{di},~{r8},~{r9},~{r10},~{r11},~{r12},~{r13},~{r14},~{r15},~{dirflag},~{fpsr},~{flags}"()13  call void %2()14  ret i32 015}16