Fix part 1 of pr4682. PICADD is a 16-bit instruction even in thumb2 mode.
[llvm/avr.git] / lib / Target / Mips / MipsTargetAsmInfo.cpp
blobaa40ff6a5ac7cedb61643d34ab806d952e89ab15
1 //===-- MipsTargetAsmInfo.cpp - Mips asm properties -------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the declarations of the MipsTargetAsmInfo properties.
12 //===----------------------------------------------------------------------===//
14 #include "MipsTargetAsmInfo.h"
15 #include "MipsTargetMachine.h"
16 using namespace llvm;
18 MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM) {
19 AlignmentIsInBytes = false;
20 COMMDirectiveTakesAlignment = true;
21 Data16bitsDirective = "\t.half\t";
22 Data32bitsDirective = "\t.word\t";
23 Data64bitsDirective = NULL;
24 PrivateGlobalPrefix = "$";
25 CommentString = "#";
26 ZeroDirective = "\t.space\t";
28 if (TM.getRelocationModel() == Reloc::PIC_)
29 JumpTableDirective = "\t.gpword\t";