summaryrefslogtreecommitdiff
path: root/gcc/config/ns32k/ns32k.md
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-18 23:06:06 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-18 23:06:06 +0000
commit995e6529de6dff30be0365fb42068f92dd89c8a0 (patch)
tree722249e7acd5b072e14bd7ca3151db758705d97b /gcc/config/ns32k/ns32k.md
parent559c71802c84ab72847c73da962d55691b4d07c0 (diff)
downloadgcc-995e6529de6dff30be0365fb42068f92dd89c8a0.tar.gz
* ns32k-protos.h: New file.
* ns32k.c: Fix compile time warnings. * ns32k.h: Move prototypes to ns32k-protos.h. Fix compile time warnings. * ns32k.md: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31494 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/ns32k/ns32k.md')
-rw-r--r--gcc/config/ns32k/ns32k.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/ns32k/ns32k.md b/gcc/config/ns32k/ns32k.md
index 7f411d35f53..10ba1d413a1 100644
--- a/gcc/config/ns32k/ns32k.md
+++ b/gcc/config/ns32k/ns32k.md
@@ -2245,12 +2245,14 @@
"TARGET_BITFIELD"
"*
{ if (GET_CODE (operands[2]) == CONST_INT)
+ {
if (INTVAL (operands[1]) <= 8)
return \"inssb %3,%0,%2,%1\";
else if (INTVAL (operands[1]) <= 16)
return \"inssw %3,%0,%2,%1\";
else
return \"inssd %3,%0,%2,%1\";
+ }
return \"insd %2,%3,%0,%1\";
}")
@@ -2262,12 +2264,14 @@
"TARGET_BITFIELD"
"*
{ if (GET_CODE (operands[2]) == CONST_INT)
+ {
if (INTVAL (operands[1]) <= 8)
return \"inssb %3,%0,%2,%1\";
else if (INTVAL (operands[1]) <= 16)
return \"inssw %3,%0,%2,%1\";
else
return \"inssd %3,%0,%2,%1\";
+ }
return \"insd %2,%3,%0,%1\";
}")