From ea9988a81231d4097efe6799f7e2f4922dab2d7f Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Wed, 16 Apr 2014 11:52:40 +0000 Subject: [PATCH] ARM64: use the integrated assembler on ELF. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206378 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM64/MCTargetDesc/ARM64MCAsmInfo.cpp | 2 ++ test/CodeGen/AArch64/mature-mc-support.ll | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/lib/Target/ARM64/MCTargetDesc/ARM64MCAsmInfo.cpp b/lib/Target/ARM64/MCTargetDesc/ARM64MCAsmInfo.cpp index 97e0d3c74b3..0575e6f7d4c 100644 --- a/lib/Target/ARM64/MCTargetDesc/ARM64MCAsmInfo.cpp +++ b/lib/Target/ARM64/MCTargetDesc/ARM64MCAsmInfo.cpp @@ -89,4 +89,6 @@ ARM64MCAsmInfoELF::ARM64MCAsmInfoELF() { // Exceptions handling ExceptionsType = ExceptionHandling::DwarfCFI; + + UseIntegratedAssembler = true; } diff --git a/test/CodeGen/AArch64/mature-mc-support.ll b/test/CodeGen/AArch64/mature-mc-support.ll index 06e3cc7d139..3359616fa8d 100644 --- a/test/CodeGen/AArch64/mature-mc-support.ll +++ b/test/CodeGen/AArch64/mature-mc-support.ll @@ -7,6 +7,12 @@ ; RUN: not llc -mtriple=aarch64-pc-linux -filetype=obj < %s > /dev/null 2> %t2 ; RUN: FileCheck %s < %t2 +; RUN: not llc -mtriple=arm64-pc-linux < %s > /dev/null 2> %t3 +; RUN: FileCheck %s < %t3 + +; RUN: not llc -mtriple=arm64-pc-linux -filetype=obj < %s > /dev/null 2> %t4 +; RUN: FileCheck %s < %t4 + module asm " .this_directive_is_very_unlikely_to_exist" ; CHECK: LLVM ERROR: Error parsing inline asm -- 2.34.1