Be nice to Xcore and the XMOS assembler and avoid quoting section names

that contain only letters, digits and the characters "_" and ".".


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127028 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Joerg Sonnenberger
2011-03-04 20:03:14 +00:00
parent ca8a2aa921
commit 89e0f386f3
17 changed files with 54 additions and 48 deletions

View File

@@ -1,6 +1,6 @@
; RUN: llc < %s -march=xcore -mcpu=xs1b-generic | FileCheck %s
; CHECK: .section ".cp.rodata.cst4","aMc",@progbits,4
; CHECK: .section .cp.rodata.cst4,"aMc",@progbits,4
; CHECK: .LCPI0_0:
; CHECK: .long 12345678
; CHECK: f:

View File

@@ -60,33 +60,33 @@ entry:
}
@G1 = global i32 4712
; CHECK: .section ".dp.data","awd",@progbits
; CHECK: .section .dp.data,"awd",@progbits
; CHECK: G1:
@G2 = global i32 0
; CHECK: .section ".dp.bss","awd",@nobits
; CHECK: .section .dp.bss,"awd",@nobits
; CHECK: G2:
@G3 = unnamed_addr constant i32 9401
; CHECK: .section ".cp.rodata.cst4","aMc",@progbits,4
; CHECK: .section .cp.rodata.cst4,"aMc",@progbits,4
; CHECK: G3:
@G4 = global i32* @G1
; CHECK: .section ".dp.data","awd",@progbits
; CHECK: .section .dp.data,"awd",@progbits
; CHECK: G4:
@G5 = unnamed_addr constant i32* @G1
; CHECK: .section ".cp.rodata","ac",@progbits
; CHECK: .section .cp.rodata,"ac",@progbits
; CHECK: G5:
@G6 = global i32* @G8
; CHECK: .section ".dp.data","awd",@progbits
; CHECK: .section .dp.data,"awd",@progbits
; CHECK: G6:
@G7 = unnamed_addr constant i32* @G8
; CHECK: .section ".cp.rodata","ac",@progbits
; CHECK: .section .cp.rodata,"ac",@progbits
; CHECK: G7:
@G8 = internal global i32 9312
; CHECK: .section ".dp.data","awd",@progbits
; CHECK: .section .dp.data,"awd",@progbits
; CHECK: G8:

View File

@@ -8,7 +8,7 @@ entry:
}
@G = thread_local global i32 15
; CHECK: .section ".dp.data","awd",@progbits
; CHECK: .section .dp.data,"awd",@progbits
; CHECK: G:
; CHECK: .long 15
; CHECK: .long 15