mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Update getSectionForConstant() to to allow mergable sections to be nulled out
if not supported by the ELF subtarget. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79249 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
11
test/CodeGen/XCore/constants.ll
Normal file
11
test/CodeGen/XCore/constants.ll
Normal file
@@ -0,0 +1,11 @@
|
||||
; RUN: llvm-as < %s | llc -march=xcore -mcpu=xs1b-generic | FileCheck %s
|
||||
|
||||
; CHECK: .section .cp.rodata,"ac",@progbits
|
||||
; CHECK: .LCPI1_0:
|
||||
; CHECK: .long 12345678
|
||||
; CHECK: f:
|
||||
; CHECK: ldw r0, cp[.LCPI1_0]
|
||||
define i32 @f() {
|
||||
entry:
|
||||
ret i32 12345678
|
||||
}
|
Reference in New Issue
Block a user