diff options
author | Jack Carter <jack.carter@imgtec.com> | 2013-04-09 23:19:50 +0000 |
---|---|---|
committer | Jack Carter <jack.carter@imgtec.com> | 2013-04-09 23:19:50 +0000 |
commit | b04e357d9bb80bd23f0301657b6b2879b380b2f8 (patch) | |
tree | 3bc702c05c3c4558b61c5f3ed3f564ede233e969 /clang/test/SemaCXX/warn-unused-variables-error.cpp | |
parent | 5711eca19cfa8375e41189119fe770b326f9e721 (diff) | |
download | bcm5719-llvm-b04e357d9bb80bd23f0301657b6b2879b380b2f8.tar.gz bcm5719-llvm-b04e357d9bb80bd23f0301657b6b2879b380b2f8.zip |
Mips specific inline asm operand modifier 'D'
Modifier 'D' is to use the second word of a double integer.
We had previously implemented the pure register varient of
the modifier and this patch implements the memory reference.
#include "stdio.h"
int b[8] = {0,1,2,3,4,5,6,7};
void main()
{
int i;
// The first word. Notice, no 'D'
{asm (
"lw %0,%1;"
: "=r" (i)
: "m" (*(b+4))
);}
printf("%d\n",i);
// The second word
{asm (
"lw %0,%D1;"
: "=r" (i)
: "m" (*(b+4))
);}
printf("%d\n",i);
}
llvm-svn: 179135
Diffstat (limited to 'clang/test/SemaCXX/warn-unused-variables-error.cpp')
0 files changed, 0 insertions, 0 deletions