mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
b434098ac8
SUMMARY: 1. in the patch , remove setting storageclass in function .getXCOFFSection and construct function of class MCSectionXCOFF there are XCOFF::StorageMappingClass MappingClass; XCOFF::SymbolType Type; XCOFF::StorageClass StorageClass; in the MCSectionXCOFF class, these attribute only used in the XCOFFObjectWriter, (asm path do not need the StorageClass) we need get the value of StorageClass, Type,MappingClass before we invoke the getXCOFFSection every time. actually , we can get the StorageClass of the MCSectionXCOFF from it's delegated symbol. 2. we also change the oprand of branch instruction from symbol name to qualify symbol name. for example change bl .foo extern .foo to bl .foo[PR] extern .foo[PR] 3. and if there is reference indirect call a function bar. we also add extern .bar[PR] Reviewers: Jason liu, Xiangling Liao Differential Revision: https://reviews.llvm.org/D84765
19 lines
557 B
LLVM
19 lines
557 B
LLVM
; RUN: llc -mcpu=pwr4 -mattr=-altivec -verify-machineinstrs -mtriple powerpc-ibm-aix-xcoff \
|
|
; RUN: -stop-after=machine-cp < %s | FileCheck \
|
|
; RUN: --check-prefix=32BIT %s
|
|
|
|
; RUN: llc -mcpu=pwr4 -mattr=-altivec -verify-machineinstrs -mtriple powerpc64-ibm-aix-xcoff \
|
|
; RUN: -stop-after=machine-cp < %s | FileCheck \
|
|
; RUN: --check-prefix=64BIT %s
|
|
|
|
define double @call_ceil(double %n) {
|
|
entry:
|
|
%0 = call double @llvm.ceil.f64(double %n)
|
|
ret double %0
|
|
}
|
|
|
|
declare double @llvm.ceil.f64(double)
|
|
|
|
; 32BIT: BL_NOP &".ceil[PR]"
|
|
; 64BIT: BL8_NOP &".ceil[PR]"
|