3 <!-- This HTML file has been created by texi2html 1.54
4 from suif1.texi on 28 April 1999 -->
6 <TITLE>The SUIF Version
1 Library - Load Constant Instructions
</TITLE>
7 <link href=
"suif1_35.html" rel=Next
>
8 <link href=
"suif1_33.html" rel=Previous
>
9 <link href=
"suif1_toc.html" rel=ToC
>
13 <p>Go to the
<A HREF=
"suif1_1.html">first
</A>,
<A HREF=
"suif1_33.html">previous
</A>,
<A HREF=
"suif1_35.html">next
</A>,
<A HREF=
"suif1_113.html">last
</A> section,
<A HREF=
"suif1_toc.html">table of contents
</A>.
17 <H2><A NAME=
"SEC34" HREF=
"suif1_toc.html#TOC34">Load Constant Instructions
</A></H2>
27 Rather than allowing constant values to be used directly as operands,
28 SUIF uses separate
<CODE>ldc
</CODE> instructions to load constant values. The
29 <CODE>in_ldc
</CODE> class holds these instructions. Instead of the usual
30 source operands, this class has an immediate value field
31 (see section
<A HREF=
"suif1_100.html#SEC100">Immediate Values
</A>). The
<CODE>value
</CODE> and
<CODE>set_value
</CODE> methods may be
32 used to access this field.
36 Only certain kinds of immediate values are supported in an
<CODE>ldc
</CODE>
42 <DT>Symbolic addresses (See section
<A HREF=
"suif1_101.html#SEC101">Symbolic Addresses
</A>)
44 The result type of the instruction must be a pointer type.
48 The result type must be an integer or pointer type. Pointer types are
49 allowed so that the null pointer can be loaded as the integer value
52 <DT>Floating-point values
54 The result type must be a floating-point type.
58 Other kinds of immediate values may be stored in the
<CODE>value
</CODE> field
59 of an
<CODE>ldc
</CODE> instruction, but most SUIF passes and certain library
60 functions will not be able to handle them.
65 <p>Go to the
<A HREF=
"suif1_1.html">first
</A>,
<A HREF=
"suif1_33.html">previous
</A>,
<A HREF=
"suif1_35.html">next
</A>,
<A HREF=
"suif1_113.html">last
</A> section,
<A HREF=
"suif1_toc.html">table of contents
</A>.