[llvm] r179135 - Mips specific inline asm operand modifier 'D'
Eric Christopher
echristo at gmail.com
Tue Apr 9 16:57:20 PDT 2013
> #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);
> }
>
Please put this code in the test, but hopefully a bit better formatted :)
A front end test might be good as well?
> +
> +attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }
And clean up the attributes here.
Thanks!
-eric
More information about the llvm-commits
mailing list