shithub: scc

ref: e7be295f1130d29aee631c6c1d0c5243a87cab21
dir: /cc2/arch/qbe/arch.h/

View raw version
/* See LICENSE file for copyright and license details. */
#define TINT    long long
#define TUINT   unsigned long long
#define TFLOAT  double

enum asmop {
	ASNOP = 0,
	ASSTB,
	ASSTH,
	ASSTW,
	ASSTL,
	ASSTS,
	ASSTD,

	ASLDB,
	ASLDH,
	ASLDW,
	ASLDL,
	ASLDS,
	ASLDD,

	ASADDW,
	ASSUBW,
	ASMULW,
	ASMODW,
	ASUMODW,
	ASDIVW,
	ASUDIVW,
	ASSHLW,
	ASSHRW,
	ASUSHRW,
	ASLTW,
	ASULTW,
	ASGTW,
	ASUGTW,
	ASLEW,
	ASULEW,
	ASGEW,
	ASUGEW,
	ASEQW,
	ASNEW,
	ASBANDW,
	ASBORW,
	ASBXORW,
	ASCPLW,

	ASADDL,
	ASSUBL,
	ASMULL,
	ASMODL,
	ASUMODL,
	ASDIVL,
	ASUDIVL,
	ASSHLL,
	ASSHRL,
	ASUSHRL,
	ASLTL,
	ASULTL,
	ASGTL,
	ASUGTL,
	ASLEL,
	ASULEL,
	ASGEL,
	ASUGEL,
	ASEQL,
	ASNEL,
	ASBANDL,
	ASBORL,
	ASBXORL,
	ASCPLL,

	ASADDS,
	ASSUBS,
	ASMULS,
	ASMODS,
	ASDIVS,
	ASSHLS,
	ASSHRS,
	ASLTS,
	ASGTS,
	ASLES,
	ASGES,
	ASEQS,
	ASNES,
	ASBANDS,
	ASBORS,
	ASBXORS,
	ASCPLS,

	ASADDD,
	ASSUBD,
	ASMULD,
	ASMODD,
	ASDIVD,
	ASSHLD,
	ASSHRD,
	ASLTD,
	ASGTD,
	ASLED,
	ASGED,
	ASEQD,
	ASNED,
	ASBANDD,
	ASBORD,
	ASBXORD,
	ASCPLD,

	ASEXTBW,
	ASUEXTBW,
	ASEXTBL,
	ASUEXTBL,
	ASEXTHW,
	ASUEXTHW,
	ASEXTHL,
	ASUEXTHL,
	ASEXTWL,
	ASUEXTW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