bolt/deps/llvm-18.1.8/llvm/test/CodeGen/X86/opaque-ptr.ll

15 lines
444 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s
define void @okay(ptr %p, i32 %x) nounwind {
; CHECK-LABEL: okay:
; CHECK: # %bb.0:
; CHECK-NEXT: #APP
; CHECK-NEXT: addl %esi, %eax
; CHECK-NEXT: #NO_APP
; CHECK-NEXT: movl %eax, (%rdi)
; CHECK-NEXT: retq
call void asm "addl $1, $0", "=*r,r"(ptr elementtype(i32) %p, i32 %x)
ret void
}