mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-20 09:24:58 +00:00
Regression tests for PR258 and PR259.
2004-02-26-FPNotPrintableConstants.llx ensures that constants used in an LLVM program are declared static if they are assigned to global variables. 2004-02-26-LinkOnceFunctions.llx ensures that linkonce functions get the weak attribute. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11885 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3799eec3cf
commit
726f0b8d36
@ -0,0 +1,8 @@
|
|||||||
|
; This is a non-normal FP value: it's a nan.
|
||||||
|
; RUN: llvm-as < %s | llc -march=c
|
||||||
|
; llvm-as < %s | llc -march=c | grep FPConstant | grep static
|
||||||
|
|
||||||
|
float %func () {
|
||||||
|
ret float 0xFF20000000000000
|
||||||
|
}
|
||||||
|
|
8
test/CodeGen/CBackend/2004-02-26-LinkOnceFunctions.llx
Normal file
8
test/CodeGen/CBackend/2004-02-26-LinkOnceFunctions.llx
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
; RUN: llvm-as < %s | llc -march=c | grep func1 | grep WEAK
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
linkonce int %func1 () {
|
||||||
|
ret int 5
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user