sparc.c (input_operand): Allow HImode and QImode valid sethi operations when TARGET_A...
authorJakub Jelinek <jakub@redhat.com>
Mon, 6 Dec 1999 17:45:23 +0000 (18:45 +0100)
committerDavid S. Miller <davem@gcc.gnu.org>
Mon, 6 Dec 1999 17:45:23 +0000 (09:45 -0800)
* config/sparc/sparc.c (input_operand): Allow HImode and QImode
valid sethi operations when TARGET_ARCH64.

From-SVN: r30803

gcc/ChangeLog
gcc/config/sparc/sparc.c

index cd606d127ad736ced94f0c3cfb6c680b9185808c..4880f039b092ba80a04dd2eff157cecbfba1f6b2 100644 (file)
@@ -5,6 +5,9 @@
 
        * longlong.h: Fix clobbers in SPARC asm statements.
 
+       * config/sparc/sparc.c (input_operand): Allow HImode and QImode
+       valid sethi operations when TARGET_ARCH64.
+
 Mon Dec  6 12:24:52 1999  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
        * fold-const.c (optimize_bit_field_compare): Only use one mode
index 516b4aae144dec9c258c4d8029f8579a79095be2..fad2420695f5c510ca05afc5d6f6a7aa6def59fa 100644 (file)
@@ -1079,7 +1079,9 @@ input_operand (op, mode)
           && ((SPARC_SETHI_P (INTVAL (op))
                && (! TARGET_ARCH64
                    || (INTVAL (op) >= 0)
-                   || mode == SImode))
+                   || mode == SImode
+                   || mode == HImode
+                   || mode == QImode))
               || SPARC_SIMM13_P (INTVAL (op))
               || (mode == DImode
                   && ! TARGET_ARCH64)))