Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/CodeGen/ARM/interwork.ll @ 128:c347d3398279 default tip
fix
author | mir3636 |
---|---|
date | Wed, 06 Dec 2017 14:37:17 +0900 |
parents | 1172e4bd9c6f |
children |
line wrap: on
line source
; One file may have multiple functions targeted at different (ARM, Thumb) ; instruction sets. Passing this information to the linker and the assembler ; is done through the ".code 16" and ".code 32" directives. ; ; RUN: llc -mtriple=arm-arm-none-eabi %s -o - | FileCheck %s define void @ft() #0 { ; CHECK: .code 16 ; CHECK: .thumb_func ; CHECK-LABEL: ft: entry: ret void } define void @fz() #1 { ; CHECK: .code 32 ; CHECK-LABEL: fz: entry: ret void } attributes #0 = { "target-features"="+thumb-mode" } attributes #1 = { "target-features"="-thumb-mode" }