mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
849209686f
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173120 91177308-0d34-0410-b5e6-96231b3b80d8
44 lines
1.2 KiB
LLVM
44 lines
1.2 KiB
LLVM
; RUN: llc -O0 -mtriple=x86_64-apple-darwin -o - %s > %t
|
|
; RUN: FileCheck --check-prefix=CHECK-ASM < %t %s
|
|
|
|
; CHECK-ASM: .linker_option "-lz"
|
|
; CHECK-ASM-NEXT: .linker_option "-framework", "Cocoa"
|
|
|
|
; RUN: llc -O0 -mtriple=x86_64-apple-darwin -filetype=obj -o - %s | macho-dump > %t
|
|
; RUN: FileCheck --check-prefix=CHECK-OBJ < %t %s
|
|
|
|
; CHECK-OBJ: ('load_commands', [
|
|
; CHECK-OBJ: # Load Command 1
|
|
; CHECK-OBJ: (('command', 45)
|
|
; CHECK-OBJ: ('size', 16)
|
|
; CHECK-OBJ: ('count', 1)
|
|
; CHECK-OBJ: ('_strings', [
|
|
; CHECK-OBJ: "-lz",
|
|
; CHECK-OBJ: ])
|
|
; CHECK-OBJ: ),
|
|
; CHECK-OBJ: # Load Command 2
|
|
; CHECK-OBJ: (('command', 45)
|
|
; CHECK-OBJ: ('size', 32)
|
|
; CHECK-OBJ: ('count', 2)
|
|
; CHECK-OBJ: ('_strings', [
|
|
; CHECK-OBJ: "-framework",
|
|
; CHECK-OBJ: "Cocoa",
|
|
; CHECK-OBJ: ])
|
|
; CHECK-OBJ: # Load Command 3
|
|
; CHECK-OBJ: (('command', 45)
|
|
; CHECK-OBJ: ('size', 24)
|
|
; CHECK-OBJ: ('count', 1)
|
|
; CHECK-OBJ: ('_strings', [
|
|
; CHECK-OBJ: "-lmath",
|
|
; CHECK-OBJ: ])
|
|
; CHECK-OBJ: ),
|
|
; CHECK-OBJ: ])
|
|
|
|
!0 = metadata !{ i32 6, metadata !"Linker Options",
|
|
metadata !{
|
|
metadata !{ metadata !"-lz" },
|
|
metadata !{ metadata !"-framework", metadata !"Cocoa" },
|
|
metadata !{ metadata !"-lmath" } } }
|
|
|
|
!llvm.module.flags = !{ !0 }
|