1! RUN: llvm-mc -arch=lanai -show-encoding %s | FileCheck %s 2 3add %r17, 0, %r21 4! CHECK: 0x0a,0xc4,0x00,0x00 5add %r17, 0x00001234, %r21 6! CHECK: 0x0a,0xc4,0x12,0x34 7add %r17, 0x12340000, %r21 8! CHECK: 0x0a,0xc5,0x12,0x34 9add.f %r17, 0, %r21 10! CHECK: 0x0a,0xc6,0x00,0x00 11add.f %r17, 0x00001234, %r21 12! CHECK: 0x0a,0xc6,0x12,0x34 13add.f %r17, 0x12340000, %r21 14! CHECK: 0x0a,0xc7,0x12,0x34 15add %r17, %r18, %r21 16! CHECK: 0xca,0xc4,0x90,0x00 17add.f %r17, %r18, %r21 18! CHECK: 0xca,0xc6,0x90,0x00 19addc %r17, %r18, %r21 20! CHECK: 0xca,0xc4,0x91,0x00 21addc.f %r17, %r18, %r21 22! CHECK: 0xca,0xc6,0x91,0x00 23addc %r17, 0, %r21 24! CHECK: 0x1a,0xc4,0x00,0x00 25addc %r17, 0x00001234, %r21 26! CHECK: 0x1a,0xc4,0x12,0x34 27addc %r17, 0x12340000, %r21 28! CHECK: 0x1a,0xc5,0x12,0x34 29addc.f %r17, 0, %r21 30! CHECK: 0x1a,0xc6,0x00,0x00 31addc.f %r17, 0x00001234, %r21 32! CHECK: 0x1a,0xc6,0x12,0x34 33addc.f %r17, 0x12340000, %r21 34! CHECK: 0x1a,0xc7,0x12,0x34 35and %r17, 0xffff1234, %r21 36! CHECK: 0x4a,0xc4,0x12,0x34 37and %r17, 0x1234ffff, %r21 38! CHECK: 0x4a,0xc5,0x12,0x34 39and.f %r17, 0xffff1234, %r21 40! CHECK: 0x4a,0xc6,0x12,0x34 41and.f %r17, 0x1234ffff, %r21 42! CHECK: 0x4a,0xc7,0x12,0x34 43and %r17, %r18, %r21 44! CHECK: 0xca,0xc4,0x94,0x00 45and.f %r17, %r18, %r21 46! CHECK: 0xca,0xc6,0x94,0x00 47bt 0x123454 48! CHECK: 0xe0,0x12,0x34,0x54 49bf 0x123454 50! CHECK: 0xe0,0x12,0x34,0x55 51bhi 0x123454 52! CHECK: 0xe2,0x12,0x34,0x54 53bugt 0x123454 54! CHECK: 0xe2,0x12,0x34,0x54 55bls 0x123454 56! CHECK: 0xe2,0x12,0x34,0x55 57bule 0x123454 58! CHECK: 0xe2,0x12,0x34,0x55 59bcc 0x123454 60! CHECK: 0xe4,0x12,0x34,0x54 61bult 0x123454 62! CHECK: 0xe4,0x12,0x34,0x54 63bcs 0x123454 64! CHECK: 0xe4,0x12,0x34,0x55 65buge 0x123454 66! CHECK: 0xe4,0x12,0x34,0x55 67bne 0x123454 68! CHECK: 0xe6,0x12,0x34,0x54 69beq 0x123454 70! CHECK: 0xe6,0x12,0x34,0x55 71bvc 0x123454 72! CHECK: 0xe8,0x12,0x34,0x54 73bvs 0x123454 74! CHECK: 0xe8,0x12,0x34,0x55 75bpl 0x123454 76! CHECK: 0xea,0x12,0x34,0x54 77bmi 0x123454 78! CHECK: 0xea,0x12,0x34,0x55 79bge 0x123454 80! CHECK: 0xec,0x12,0x34,0x54 81blt 0x123454 82! CHECK: 0xec,0x12,0x34,0x55 83bgt 0x123454 84! CHECK: 0xee,0x12,0x34,0x54 85bt %r19 86! CHECK: 0xc1,0x00,0x9d,0x00 87bt.r 0x5678 88! CHECK: 0xe1,0x00,0x56,0x7a 89bf.r 0x5678 90! CHECK: 0xe1,0x00,0x56,0x7b 91bhi.r 0x5678 92! CHECK: 0xe3,0x00,0x56,0x7a 93bugt.r 0x5678 94! CHECK: 0xe3,0x00,0x56,0x7a 95bls.r 0x5678 96! CHECK: 0xe3,0x00,0x56,0x7b 97bule.r 0x5678 98! CHECK: 0xe3,0x00,0x56,0x7b 99bcc.r 0x5678 100! CHECK: 0xe5,0x00,0x56,0x7a 101bult.r 0x5678 102! CHECK: 0xe5,0x00,0x56,0x7a 103bcs.r 0x5678 104! CHECK: 0xe5,0x00,0x56,0x7b 105buge.r 0x5678 106! CHECK: 0xe5,0x00,0x56,0x7b 107bne.r 0x5678 108! CHECK: 0xe7,0x00,0x56,0x7a 109beq.r 0x5678 110! CHECK: 0xe7,0x00,0x56,0x7b 111bvc.r 0x5678 112! CHECK: 0xe9,0x00,0x56,0x7a 113bvs.r 0x5678 114! CHECK: 0xe9,0x00,0x56,0x7b 115bpl.r 0x5678 116! CHECK: 0xeb,0x00,0x56,0x7a 117bmi.r 0x5678 118! CHECK: 0xeb,0x00,0x56,0x7b 119bge.r 0x5678 120! CHECK: 0xed,0x00,0x56,0x7a 121blt.r 0x5678 122! CHECK: 0xed,0x00,0x56,0x7b 123bgt.r 0x5678 124! CHECK: 0xef,0x00,0x56,0x7a 125ld -32768[%r17], %r21 126! CHECK: 0x8a,0xc6,0x80,0x00 127ld -1024[%r17], %r21 128! CHECK: 0x8a,0xc6,0xfc,0x00 129ld 0[%r17], %r21 130! CHECK: 0x8a,0xc4,0x00,0x00 131ld 1024[%r17], %r21 132! CHECK: 0x8a,0xc6,0x04,0x00 133ld 32767[%r17], %r21 134! CHECK: 0x8a,0xc6,0x7f,0xff 135uld -32768[%r17], %r21 136! CHECK: 0x8a,0xc6,0x80,0x00 137uld -1024[%r17], %r21 138! CHECK: 0x8a,0xc6,0xfc,0x00 139uld 0[%r17], %r21 140! CHECK: 0x8a,0xc4,0x00,0x00 141uld 1024[%r17], %r21 142! CHECK: 0x8a,0xc6,0x04,0x00 143uld 32767[%r17], %r21 144! CHECK: 0x8a,0xc6,0x7f,0xff 145ld %r18[%r17], %r21 146! CHECK: 0xaa,0xc6,0x90,0x02 147uld %r18[%r17], %r21 148! CHECK: 0xaa,0xc6,0x90,0x03 149ld.h -512[%r17], %r21 150! CHECK: 0xfa,0xc7,0x0a,0x00 151ld.h -13[%r17], %r21 152! CHECK: 0xfa,0xc7,0x0b,0xf3 153ld.h 18[%r17], %r21 154! CHECK: 0xfa,0xc7,0x08,0x12 155ld.h 511[%r17], %r21 156! CHECK: 0xfa,0xc7,0x09,0xff 157ld.b -512[%r17], %r21 158! CHECK: 0xfa,0xc7,0x4a,0x00 159ld.b -13[%r17], %r21 160! CHECK: 0xfa,0xc7,0x4b,0xf3 161ld.b 18[%r17], %r21 162! CHECK: 0xfa,0xc7,0x48,0x12 163ld.b 511[%r17], %r21 164! CHECK: 0xfa,0xc7,0x49,0xff 165uld.h -512[%r17], %r21 166! CHECK: 0xfa,0xc7,0x1a,0x00 167uld.h -13[%r17], %r21 168! CHECK: 0xfa,0xc7,0x1b,0xf3 169uld.h 18[%r17], %r21 170! CHECK: 0xfa,0xc7,0x18,0x12 171uld.h 511[%r17], %r21 172! CHECK: 0xfa,0xc7,0x19,0xff 173uld.b -512[%r17], %r21 174! CHECK: 0xfa,0xc7,0x5a,0x00 175uld.b -13[%r17], %r21 176! CHECK: 0xfa,0xc7,0x5b,0xf3 177uld.b 18[%r17], %r21 178! CHECK: 0xfa,0xc7,0x58,0x12 179uld.b 511[%r17], %r21 180! CHECK: 0xfa,0xc7,0x59,0xff 181ld -32768[*%r17], %r21 182! CHECK: 0x8a,0xc7,0x80,0x00 183ld -1024[*%r17], %r21 184! CHECK: 0x8a,0xc7,0xfc,0x00 185ld 0[*%r17], %r21 186! CHECK: 0x8a,0xc4,0x00,0x00 187ld 1024[*%r17], %r21 188! CHECK: 0x8a,0xc7,0x04,0x00 189ld 32767[*%r17], %r21 190! CHECK: 0x8a,0xc7,0x7f,0xff 191uld -32768[*%r17], %r21 192! CHECK: 0x8a,0xc7,0x80,0x00 193uld -1024[*%r17], %r21 194! CHECK: 0x8a,0xc7,0xfc,0x00 195uld 0[*%r17], %r21 196! CHECK: 0x8a,0xc4,0x00,0x00 197uld 1024[*%r17], %r21 198! CHECK: 0x8a,0xc7,0x04,0x00 199uld 32767[*%r17], %r21 200! CHECK: 0x8a,0xc7,0x7f,0xff 201ld [--%r17], %r21 202! CHECK: 0x8a,0xc7,0xff,0xfc 203ld [++%r17], %r21 204! CHECK: 0x8a,0xc7,0x00,0x04 205ld.h [--%r17], %r21 206! CHECK: 0xfa,0xc7,0x0f,0xfe 207ld.h [++%r17], %r21 208! CHECK: 0xfa,0xc7,0x0c,0x02 209uld.h [--%r17], %r21 210! CHECK: 0xfa,0xc7,0x1f,0xfe 211uld.h [++%r17], %r21 212! CHECK: 0xfa,0xc7,0x1c,0x02 213ld.b [--%r17], %r21 214! CHECK: 0xfa,0xc7,0x4f,0xff 215ld.b [++%r17], %r21 216! CHECK: 0xfa,0xc7,0x4c,0x01 217uld.b [--%r17], %r21 218! CHECK: 0xfa,0xc7,0x5f,0xff 219uld.b [++%r17], %r21 220! CHECK: 0xfa,0xc7,0x5c,0x01 221ld %r18[*%r17], %r21 222! CHECK: 0xaa,0xc7,0x90,0x02 223uld %r18[*%r17], %r21 224! CHECK: 0xaa,0xc7,0x90,0x03 225ld.h -512[*%r17], %r21 226! CHECK: 0xfa,0xc7,0x0e,0x00 227ld.h -13[*%r17], %r21 228! CHECK: 0xfa,0xc7,0x0f,0xf3 229ld.h 18[*%r17], %r21 230! CHECK: 0xfa,0xc7,0x0c,0x12 231ld.h 511[*%r17], %r21 232! CHECK: 0xfa,0xc7,0x0d,0xff 233ld.b -512[*%r17], %r21 234! CHECK: 0xfa,0xc7,0x4e,0x00 235ld.b -13[*%r17], %r21 236! CHECK: 0xfa,0xc7,0x4f,0xf3 237ld.b 18[*%r17], %r21 238! CHECK: 0xfa,0xc7,0x4c,0x12 239ld.b 511[*%r17], %r21 240! CHECK: 0xfa,0xc7,0x4d,0xff 241uld.h -512[*%r17], %r21 242! CHECK: 0xfa,0xc7,0x1e,0x00 243uld.h -13[*%r17], %r21 244! CHECK: 0xfa,0xc7,0x1f,0xf3 245uld.h 18[*%r17], %r21 246! CHECK: 0xfa,0xc7,0x1c,0x12 247uld.h 511[*%r17], %r21 248! CHECK: 0xfa,0xc7,0x1d,0xff 249uld.b -512[*%r17], %r21 250! CHECK: 0xfa,0xc7,0x5e,0x00 251uld.b -13[*%r17], %r21 252! CHECK: 0xfa,0xc7,0x5f,0xf3 253uld.b 18[*%r17], %r21 254! CHECK: 0xfa,0xc7,0x5c,0x12 255uld.b 511[*%r17], %r21 256! CHECK: 0xfa,0xc7,0x5d,0xff 257ld -32768[%r17*], %r21 258! CHECK: 0x8a,0xc5,0x80,0x00 259ld -1024[%r17*], %r21 260! CHECK: 0x8a,0xc5,0xfc,0x00 261ld 0[%r17*], %r21 262! CHECK: 0x8a,0xc4,0x00,0x00 263ld 1024[%r17*], %r21 264! CHECK: 0x8a,0xc5,0x04,0x00 265ld 32767[%r17*], %r21 266! CHECK: 0x8a,0xc5,0x7f,0xff 267uld -32768[%r17*], %r21 268! CHECK: 0x8a,0xc5,0x80,0x00 269uld -1024[%r17*], %r21 270! CHECK: 0x8a,0xc5,0xfc,0x00 271uld 0[%r17*], %r21 272! CHECK: 0x8a,0xc4,0x00,0x00 273uld 1024[%r17*], %r21 274! CHECK: 0x8a,0xc5,0x04,0x00 275uld 32767[%r17*], %r21 276! CHECK: 0x8a,0xc5,0x7f,0xff 277ld [%r17--], %r21 278! CHECK: 0x8a,0xc5,0xff,0xfc 279ld [%r17++], %r21 280! CHECK: 0x8a,0xc5,0x00,0x04 281ld.h [%r17--], %r21 282! CHECK: 0xfa,0xc7,0x07,0xfe 283ld.h [%r17++], %r21 284! CHECK: 0xfa,0xc7,0x04,0x02 285uld.h [%r17--], %r21 286! CHECK: 0xfa,0xc7,0x17,0xfe 287uld.h [%r17++], %r21 288! CHECK: 0xfa,0xc7,0x14,0x02 289ld.b [%r17--], %r21 290! CHECK: 0xfa,0xc7,0x47,0xff 291ld.b [%r17++], %r21 292! CHECK: 0xfa,0xc7,0x44,0x01 293uld.b [%r17--], %r21 294! CHECK: 0xfa,0xc7,0x57,0xff 295uld.b [%r17++], %r21 296! CHECK: 0xfa,0xc7,0x54,0x01 297ld %r18[%r17*], %r21 298! CHECK: 0xaa,0xc5,0x90,0x02 299uld %r18[%r17*], %r21 300! CHECK: 0xaa,0xc5,0x90,0x03 301ld.h -512[%r17*], %r21 302! CHECK: 0xfa,0xc7,0x06,0x00 303ld.h -13[%r17*], %r21 304! CHECK: 0xfa,0xc7,0x07,0xf3 305ld.h 18[%r17*], %r21 306! CHECK: 0xfa,0xc7,0x04,0x12 307ld.h 511[%r17*], %r21 308! CHECK: 0xfa,0xc7,0x05,0xff 309ld.b -512[%r17*], %r21 310! CHECK: 0xfa,0xc7,0x46,0x00 311ld.b -13[%r17*], %r21 312! CHECK: 0xfa,0xc7,0x47,0xf3 313ld.b 18[%r17*], %r21 314! CHECK: 0xfa,0xc7,0x44,0x12 315ld.b 511[%r17*], %r21 316! CHECK: 0xfa,0xc7,0x45,0xff 317uld.h -512[%r17*], %r21 318! CHECK: 0xfa,0xc7,0x16,0x00 319uld.h -13[%r17*], %r21 320! CHECK: 0xfa,0xc7,0x17,0xf3 321uld.h 18[%r17*], %r21 322! CHECK: 0xfa,0xc7,0x14,0x12 323uld.h 511[%r17*], %r21 324! CHECK: 0xfa,0xc7,0x15,0xff 325uld.b -512[%r17*], %r21 326! CHECK: 0xfa,0xc7,0x56,0x00 327uld.b -13[%r17*], %r21 328! CHECK: 0xfa,0xc7,0x57,0xf3 329uld.b 18[%r17*], %r21 330! CHECK: 0xfa,0xc7,0x54,0x12 331uld.b 511[%r17*], %r21 332! CHECK: 0xfa,0xc7,0x55,0xff 333ld [%r17 add %r18], %r21 334! CHECK: 0xaa,0xc6,0x90,0x02 335ld [%r17 addc %r18], %r21 336! CHECK: 0xaa,0xc6,0x91,0x02 337ld [%r17 sub %r18], %r21 338! CHECK: 0xaa,0xc6,0x92,0x02 339ld [%r17 subb %r18], %r21 340! CHECK: 0xaa,0xc6,0x93,0x02 341ld [%r17 and %r18], %r21 342! CHECK: 0xaa,0xc6,0x94,0x02 343ld [%r17 or %r18], %r21 344! CHECK: 0xaa,0xc6,0x95,0x02 345ld [%r17 xor %r18], %r21 346! CHECK: 0xaa,0xc6,0x96,0x02 347ld [%r17 sh %r18], %r21 348! CHECK: 0xaa,0xc6,0x97,0x82 349ld [%r17 sha %r18], %r21 350! CHECK: 0xaa,0xc6,0x97,0xc2 351ld [*%r17 add %r18], %r21 352! CHECK: 0xaa,0xc7,0x90,0x02 353ld [*%r17 addc %r18], %r21 354! CHECK: 0xaa,0xc7,0x91,0x02 355ld [*%r17 sub %r18], %r21 356! CHECK: 0xaa,0xc7,0x92,0x02 357ld [*%r17 subb %r18], %r21 358! CHECK: 0xaa,0xc7,0x93,0x02 359ld [*%r17 and %r18], %r21 360! CHECK: 0xaa,0xc7,0x94,0x02 361ld [*%r17 or %r18], %r21 362! CHECK: 0xaa,0xc7,0x95,0x02 363ld [*%r17 xor %r18], %r21 364! CHECK: 0xaa,0xc7,0x96,0x02 365ld [*%r17 sh %r18], %r21 366! CHECK: 0xaa,0xc7,0x97,0x82 367ld [*%r17 sha %r18], %r21 368! CHECK: 0xaa,0xc7,0x97,0xc2 369ld [%r17* add %r18], %r21 370! CHECK: 0xaa,0xc5,0x90,0x02 371ld [%r17* addc %r18], %r21 372! CHECK: 0xaa,0xc5,0x91,0x02 373ld [%r17* sub %r18], %r21 374! CHECK: 0xaa,0xc5,0x92,0x02 375ld [%r17* subb %r18], %r21 376! CHECK: 0xaa,0xc5,0x93,0x02 377ld [%r17* and %r18], %r21 378! CHECK: 0xaa,0xc5,0x94,0x02 379ld [%r17* or %r18], %r21 380! CHECK: 0xaa,0xc5,0x95,0x02 381ld [%r17* xor %r18], %r21 382! CHECK: 0xaa,0xc5,0x96,0x02 383ld [%r17* sh %r18], %r21 384! CHECK: 0xaa,0xc5,0x97,0x82 385ld [%r17* sha %r18], %r21 386! CHECK: 0xaa,0xc5,0x97,0xc2 387ld [0x12344], %r21 388! CHECK: 0xfa,0x84,0x23,0x44 389leadz %r17, %r21 390! CHECK: 0xda,0xc4,0x00,0x02 391mov 0, %r17 392! CHECK: 0x08,0x80,0x00,0x00 393mov 0x00001234, %r17 394! CHECK: 0x08,0x80,0x12,0x34 395mov 0x12340000, %r17 396! CHECK: 0x08,0x81,0x12,0x34 397mov 0xaaaa0000, %r17 398! CHECK: 0x08,0x81,0xaa,0xaa 399mov %r18, %r17 400! CHECK: 0xc8,0xc8,0x00,0x00 401mov 0x12344, %r17 402! CHECK: 0xf8,0x86,0x23,0x44 403mov 0xffff1234, %r17 404! CHECK: 0x48,0x84,0x12,0x34 405mov 0x1234ffff, %r17 406! CHECK: 0x48,0x85,0x12,0x34 407nop 408! CHECK: 0x00,0x00,0x00,0x01 409or %r17, 0, %r21 410! CHECK: 0x5a,0xc4,0x00,0x00 411or %r17, 0x00001234, %r21 412! CHECK: 0x5a,0xc4,0x12,0x34 413or %r17, 0x12340000, %r21 414! CHECK: 0x5a,0xc5,0x12,0x34 415or.f %r17, 0, %r21 416! CHECK: 0x5a,0xc6,0x00,0x00 417or.f %r17, 0x00001234, %r21 418! CHECK: 0x5a,0xc6,0x12,0x34 419or.f %r17, 0x12340000, %r21 420! CHECK: 0x5a,0xc7,0x12,0x34 421or %r17, %r18, %r21 422! CHECK: 0xca,0xc4,0x95,0x00 423or.f %r17, %r18, %r21 424! CHECK: 0xca,0xc6,0x95,0x00 425popc %r17, %r21 426! CHECK: 0xda,0xc4,0x00,0x01 427st %r21 428! CHECK: 0xe0,0x54,0x00,0x02 429shi %r21 430! CHECK: 0xe2,0x54,0x00,0x02 431sugt %r21 432! CHECK: 0xe2,0x54,0x00,0x02 433sls %r21 434! CHECK: 0xe2,0x54,0x00,0x03 435sule %r21 436! CHECK: 0xe2,0x54,0x00,0x03 437scc %r21 438! CHECK: 0xe4,0x54,0x00,0x02 439sult %r21 440! CHECK: 0xe4,0x54,0x00,0x02 441scs %r21 442! CHECK: 0xe4,0x54,0x00,0x03 443suge %r21 444! CHECK: 0xe4,0x54,0x00,0x03 445sne %r21 446! CHECK: 0xe6,0x54,0x00,0x02 447seq %r21 448! CHECK: 0xe6,0x54,0x00,0x03 449svc %r21 450! CHECK: 0xe8,0x54,0x00,0x02 451svs %r21 452! CHECK: 0xe8,0x54,0x00,0x03 453spl %r21 454! CHECK: 0xea,0x54,0x00,0x02 455smi %r21 456! CHECK: 0xea,0x54,0x00,0x03 457sge %r21 458! CHECK: 0xec,0x54,0x00,0x02 459slt %r21 460! CHECK: 0xec,0x54,0x00,0x03 461sgt %r21 462! CHECK: 0xee,0x54,0x00,0x02 463sh %r17, -31, %r21 464! CHECK: 0x7a,0xc4,0xff,0xe1 465sh %r17, -5, %r21 466! CHECK: 0x7a,0xc4,0xff,0xfb 467sh %r17, 2, %r21 468! CHECK: 0x7a,0xc4,0x00,0x02 469sh %r17, 31, %r21 470! CHECK: 0x7a,0xc4,0x00,0x1f 471sh.f %r17, -31, %r21 472! CHECK: 0x7a,0xc6,0xff,0xe1 473sh.f %r17, -5, %r21 474! CHECK: 0x7a,0xc6,0xff,0xfb 475sh.f %r17, 2, %r21 476! CHECK: 0x7a,0xc6,0x00,0x02 477sh.f %r17, 31, %r21 478! CHECK: 0x7a,0xc6,0x00,0x1f 479sh %r17, %r18, %r21 480! CHECK: 0xca,0xc4,0x97,0x80 481sh.f %r17, %r18, %r21 482! CHECK: 0xca,0xc6,0x97,0x80 483sha %r17, -31, %r21 484! CHECK: 0x7a,0xc5,0xff,0xe1 485sha %r17, -5, %r21 486! CHECK: 0x7a,0xc5,0xff,0xfb 487sha %r17, 2, %r21 488! CHECK: 0x7a,0xc5,0x00,0x02 489sha %r17, 31, %r21 490! CHECK: 0x7a,0xc5,0x00,0x1f 491sha.f %r17, -31, %r21 492! CHECK: 0x7a,0xc7,0xff,0xe1 493sha.f %r17, -5, %r21 494! CHECK: 0x7a,0xc7,0xff,0xfb 495sha.f %r17, 2, %r21 496! CHECK: 0x7a,0xc7,0x00,0x02 497sha.f %r17, 31, %r21 498! CHECK: 0x7a,0xc7,0x00,0x1f 499sha %r17, %r18, %r21 500! CHECK: 0xca,0xc4,0x97,0xc0 501sha.f %r17, %r18, %r21 502! CHECK: 0xca,0xc6,0x97,0xc0 503st %r17, -32768[%r19] 504! CHECK: 0x98,0xce,0x80,0x00 505st %r17, -1024[%r19] 506! CHECK: 0x98,0xce,0xfc,0x00 507st %r17, 0[%r19] 508! CHECK: 0x98,0xcc,0x00,0x00 509st %r17, 1024[%r19] 510! CHECK: 0x98,0xce,0x04,0x00 511st %r17, 32767[%r19] 512! CHECK: 0x98,0xce,0x7f,0xff 513st.h %r17, -512[%r19] 514! CHECK: 0xf8,0xcf,0x2a,0x00 515st.h %r17, -13[%r19] 516! CHECK: 0xf8,0xcf,0x2b,0xf3 517st.h %r17, 18[%r19] 518! CHECK: 0xf8,0xcf,0x28,0x12 519st.h %r17, 511[%r19] 520! CHECK: 0xf8,0xcf,0x29,0xff 521st.b %r17, -512[%r19] 522! CHECK: 0xf8,0xcf,0x6a,0x00 523st.b %r17, -13[%r19] 524! CHECK: 0xf8,0xcf,0x6b,0xf3 525st.b %r17, 18[%r19] 526! CHECK: 0xf8,0xcf,0x68,0x12 527st.b %r17, 511[%r19] 528! CHECK: 0xf8,0xcf,0x69,0xff 529st %r17, %r18[%r19] 530! CHECK: 0xb8,0xce,0x90,0x02 531st.h %r17, %r18[%r19] 532! CHECK: 0xb8,0xce,0x90,0x00 533st.b %r17, %r18[%r19] 534! CHECK: 0xb8,0xce,0x90,0x04 535st %r17, -32768[*%r19] 536! CHECK: 0x98,0xcf,0x80,0x00 537st %r17, -1024[*%r19] 538! CHECK: 0x98,0xcf,0xfc,0x00 539st %r17, 0[*%r19] 540! CHECK: 0x98,0xcc,0x00,0x00 541st %r17, 1024[*%r19] 542! CHECK: 0x98,0xcf,0x04,0x00 543st %r17, 32767[*%r19] 544! CHECK: 0x98,0xcf,0x7f,0xff 545st.h %r17, -512[*%r19] 546! CHECK: 0xf8,0xcf,0x2e,0x00 547st.h %r17, -13[*%r19] 548! CHECK: 0xf8,0xcf,0x2f,0xf3 549st.h %r17, 18[*%r19] 550! CHECK: 0xf8,0xcf,0x2c,0x12 551st.h %r17, 511[*%r19] 552! CHECK: 0xf8,0xcf,0x2d,0xff 553st.b %r17, -512[*%r19] 554! CHECK: 0xf8,0xcf,0x6e,0x00 555st.b %r17, -13[*%r19] 556! CHECK: 0xf8,0xcf,0x6f,0xf3 557st.b %r17, 18[*%r19] 558! CHECK: 0xf8,0xcf,0x6c,0x12 559st.b %r17, 511[*%r19] 560! CHECK: 0xf8,0xcf,0x6d,0xff 561st %r17, [--%r19] 562! CHECK: 0x98,0xcf,0xff,0xfc 563st %r17, [++%r19] 564! CHECK: 0x98,0xcf,0x00,0x04 565st.h %r17, [--%r19] 566! CHECK: 0xf8,0xcf,0x2f,0xfe 567st.h %r17, [++%r19] 568! CHECK: 0xf8,0xcf,0x2c,0x02 569st.b %r17, [--%r19] 570! CHECK: 0xf8,0xcf,0x6f,0xff 571st.b %r17, [++%r19] 572! CHECK: 0xf8,0xcf,0x6c,0x01 573st %r17, %r18[*%r19] 574! CHECK: 0xb8,0xcf,0x90,0x02 575st.h %r17, %r18[*%r19] 576! CHECK: 0xb8,0xcf,0x90,0x00 577st.b %r17, %r18[*%r19] 578! CHECK: 0xb8,0xcf,0x90,0x04 579st %r17, -32768[%r19*] 580! CHECK: 0x98,0xcd,0x80,0x00 581st %r17, -1024[%r19*] 582! CHECK: 0x98,0xcd,0xfc,0x00 583st %r17, 0[%r19*] 584! CHECK: 0x98,0xcc,0x00,0x00 585st %r17, 1024[%r19*] 586! CHECK: 0x98,0xcd,0x04,0x00 587st %r17, 32767[%r19*] 588! CHECK: 0x98,0xcd,0x7f,0xff 589st.h %r17, -512[%r19*] 590! CHECK: 0xf8,0xcf,0x26,0x00 591st.h %r17, -13[%r19*] 592! CHECK: 0xf8,0xcf,0x27,0xf3 593st.h %r17, 18[%r19*] 594! CHECK: 0xf8,0xcf,0x24,0x12 595st.h %r17, 511[%r19*] 596! CHECK: 0xf8,0xcf,0x25,0xff 597st.b %r17, -512[%r19*] 598! CHECK: 0xf8,0xcf,0x66,0x00 599st.b %r17, -13[%r19*] 600! CHECK: 0xf8,0xcf,0x67,0xf3 601st.b %r17, 18[%r19*] 602! CHECK: 0xf8,0xcf,0x64,0x12 603st.b %r17, 511[%r19*] 604! CHECK: 0xf8,0xcf,0x65,0xff 605st %r17, [%r19--] 606! CHECK: 0x98,0xcd,0xff,0xfc 607st %r17, [%r19++] 608! CHECK: 0x98,0xcd,0x00,0x04 609st.h %r17, [%r19--] 610! CHECK: 0xf8,0xcf,0x27,0xfe 611st.h %r17, [%r19++] 612! CHECK: 0xf8,0xcf,0x24,0x02 613st.b %r17, [%r19--] 614! CHECK: 0xf8,0xcf,0x67,0xff 615st.b %r17, [%r19++] 616! CHECK: 0xf8,0xcf,0x64,0x01 617st %r17, %r18[%r19*] 618! CHECK: 0xb8,0xcd,0x90,0x02 619st.h %r17, %r18[%r19*] 620! CHECK: 0xb8,0xcd,0x90,0x00 621st.b %r17, %r18[%r19*] 622! CHECK: 0xb8,0xcd,0x90,0x04 623st %r21, [%r17 add %r18] 624! CHECK: 0xba,0xc6,0x90,0x02 625st %r21, [%r17 addc %r18] 626! CHECK: 0xba,0xc6,0x91,0x02 627st %r21, [%r17 sub %r18] 628! CHECK: 0xba,0xc6,0x92,0x02 629st %r21, [%r17 subb %r18] 630! CHECK: 0xba,0xc6,0x93,0x02 631st %r21, [%r17 and %r18] 632! CHECK: 0xba,0xc6,0x94,0x02 633st %r21, [%r17 or %r18] 634! CHECK: 0xba,0xc6,0x95,0x02 635st %r21, [%r17 xor %r18] 636! CHECK: 0xba,0xc6,0x96,0x02 637st %r21, [%r17 sh %r18] 638! CHECK: 0xba,0xc6,0x97,0x82 639st %r21, [%r17 sha %r18] 640! CHECK: 0xba,0xc6,0x97,0xc2 641st.h %r21, [%r17 add %r18] 642! CHECK: 0xba,0xc6,0x90,0x00 643st.h %r21, [%r17 addc %r18] 644! CHECK: 0xba,0xc6,0x91,0x00 645st.h %r21, [%r17 sub %r18] 646! CHECK: 0xba,0xc6,0x92,0x00 647st.h %r21, [%r17 subb %r18] 648! CHECK: 0xba,0xc6,0x93,0x00 649st.h %r21, [%r17 and %r18] 650! CHECK: 0xba,0xc6,0x94,0x00 651st.h %r21, [%r17 or %r18] 652! CHECK: 0xba,0xc6,0x95,0x00 653st.h %r21, [%r17 xor %r18] 654! CHECK: 0xba,0xc6,0x96,0x00 655st.h %r21, [%r17 sh %r18] 656! CHECK: 0xba,0xc6,0x97,0x80 657st.h %r21, [%r17 sha %r18] 658! CHECK: 0xba,0xc6,0x97,0xc0 659st.b %r21, [%r17 add %r18] 660! CHECK: 0xba,0xc6,0x90,0x04 661st.b %r21, [%r17 addc %r18] 662! CHECK: 0xba,0xc6,0x91,0x04 663st.b %r21, [%r17 sub %r18] 664! CHECK: 0xba,0xc6,0x92,0x04 665st.b %r21, [%r17 subb %r18] 666! CHECK: 0xba,0xc6,0x93,0x04 667st.b %r21, [%r17 and %r18] 668! CHECK: 0xba,0xc6,0x94,0x04 669st.b %r21, [%r17 or %r18] 670! CHECK: 0xba,0xc6,0x95,0x04 671st.b %r21, [%r17 xor %r18] 672! CHECK: 0xba,0xc6,0x96,0x04 673st.b %r21, [%r17 sh %r18] 674! CHECK: 0xba,0xc6,0x97,0x84 675st.b %r21, [%r17 sha %r18] 676! CHECK: 0xba,0xc6,0x97,0xc4 677st %r21, [*%r17 add %r18] 678! CHECK: 0xba,0xc7,0x90,0x02 679st %r21, [*%r17 addc %r18] 680! CHECK: 0xba,0xc7,0x91,0x02 681st %r21, [*%r17 sub %r18] 682! CHECK: 0xba,0xc7,0x92,0x02 683st %r21, [*%r17 subb %r18] 684! CHECK: 0xba,0xc7,0x93,0x02 685st %r21, [*%r17 and %r18] 686! CHECK: 0xba,0xc7,0x94,0x02 687st %r21, [*%r17 or %r18] 688! CHECK: 0xba,0xc7,0x95,0x02 689st %r21, [*%r17 xor %r18] 690! CHECK: 0xba,0xc7,0x96,0x02 691st %r21, [*%r17 sha %r18] 692! CHECK: 0xba,0xc7,0x97,0xc2 693st.h %r21, [*%r17 add %r18] 694! CHECK: 0xba,0xc7,0x90,0x00 695st.h %r21, [*%r17 addc %r18] 696! CHECK: 0xba,0xc7,0x91,0x00 697st.h %r21, [*%r17 sub %r18] 698! CHECK: 0xba,0xc7,0x92,0x00 699st.h %r21, [*%r17 subb %r18] 700! CHECK: 0xba,0xc7,0x93,0x00 701st.h %r21, [*%r17 and %r18] 702! CHECK: 0xba,0xc7,0x94,0x00 703st.h %r21, [*%r17 or %r18] 704! CHECK: 0xba,0xc7,0x95,0x00 705st.h %r21, [*%r17 xor %r18] 706! CHECK: 0xba,0xc7,0x96,0x00 707st.h %r21, [*%r17 sha %r18] 708! CHECK: 0xba,0xc7,0x97,0xc0 709st.b %r21, [*%r17 add %r18] 710! CHECK: 0xba,0xc7,0x90,0x04 711st.b %r21, [*%r17 addc %r18] 712! CHECK: 0xba,0xc7,0x91,0x04 713st.b %r21, [*%r17 sub %r18] 714! CHECK: 0xba,0xc7,0x92,0x04 715st.b %r21, [*%r17 subb %r18] 716! CHECK: 0xba,0xc7,0x93,0x04 717st.b %r21, [*%r17 and %r18] 718! CHECK: 0xba,0xc7,0x94,0x04 719st.b %r21, [*%r17 or %r18] 720! CHECK: 0xba,0xc7,0x95,0x04 721st.b %r21, [*%r17 xor %r18] 722! CHECK: 0xba,0xc7,0x96,0x04 723st.b %r21, [*%r17 sha %r18] 724! CHECK: 0xba,0xc7,0x97,0xc4 725st %r21, [%r17* add %r18] 726! CHECK: 0xba,0xc5,0x90,0x02 727st %r21, [%r17* addc %r18] 728! CHECK: 0xba,0xc5,0x91,0x02 729st %r21, [%r17* sub %r18] 730! CHECK: 0xba,0xc5,0x92,0x02 731st %r21, [%r17* subb %r18] 732! CHECK: 0xba,0xc5,0x93,0x02 733st %r21, [%r17* and %r18] 734! CHECK: 0xba,0xc5,0x94,0x02 735st %r21, [%r17* or %r18] 736! CHECK: 0xba,0xc5,0x95,0x02 737st %r21, [%r17* xor %r18] 738! CHECK: 0xba,0xc5,0x96,0x02 739st %r21, [%r17* sh %r18] 740! CHECK: 0xba,0xc5,0x97,0x82 741st %r21, [%r17* sha %r18] 742! CHECK: 0xba,0xc5,0x97,0xc2 743st.h %r21, [%r17* add %r18] 744! CHECK: 0xba,0xc5,0x90,0x00 745st.h %r21, [%r17* addc %r18] 746! CHECK: 0xba,0xc5,0x91,0x00 747st.h %r21, [%r17* sub %r18] 748! CHECK: 0xba,0xc5,0x92,0x00 749st.h %r21, [%r17* subb %r18] 750! CHECK: 0xba,0xc5,0x93,0x00 751st.h %r21, [%r17* and %r18] 752! CHECK: 0xba,0xc5,0x94,0x00 753st.h %r21, [%r17* or %r18] 754! CHECK: 0xba,0xc5,0x95,0x00 755st.h %r21, [%r17* xor %r18] 756! CHECK: 0xba,0xc5,0x96,0x00 757st.h %r21, [%r17* sh %r18] 758! CHECK: 0xba,0xc5,0x97,0x80 759st.h %r21, [%r17* sha %r18] 760! CHECK: 0xba,0xc5,0x97,0xc0 761st.b %r21, [%r17* add %r18] 762! CHECK: 0xba,0xc5,0x90,0x04 763st.b %r21, [%r17* addc %r18] 764! CHECK: 0xba,0xc5,0x91,0x04 765st.b %r21, [%r17* sub %r18] 766! CHECK: 0xba,0xc5,0x92,0x04 767st.b %r21, [%r17* subb %r18] 768! CHECK: 0xba,0xc5,0x93,0x04 769st.b %r21, [%r17* and %r18] 770! CHECK: 0xba,0xc5,0x94,0x04 771st.b %r21, [%r17* or %r18] 772! CHECK: 0xba,0xc5,0x95,0x04 773st.b %r21, [%r17* xor %r18] 774! CHECK: 0xba,0xc5,0x96,0x04 775st.b %r21, [%r17* sh %r18] 776! CHECK: 0xba,0xc5,0x97,0x84 777st.b %r21, [%r17* sha %r18] 778! CHECK: 0xba,0xc5,0x97,0xc4 779st %r21, [0x12344] 780! CHECK: 0xfa,0x85,0x23,0x44 781sub %r17, 0, %r21 782! CHECK: 0x2a,0xc4,0x00,0x00 783sub %r17, 0x00001234, %r21 784! CHECK: 0x2a,0xc4,0x12,0x34 785sub %r17, 0x12340000, %r21 786! CHECK: 0x2a,0xc5,0x12,0x34 787sub.f %r17, 0, %r21 788! CHECK: 0x2a,0xc6,0x00,0x00 789sub.f %r17, 0x00001234, %r21 790! CHECK: 0x2a,0xc6,0x12,0x34 791sub.f %r17, 0x12340000, %r21 792! CHECK: 0x2a,0xc7,0x12,0x34 793sub %r17, %r18, %r21 794! CHECK: 0xca,0xc4,0x92,0x00 795sub.f %r17, %r18, %r21 796! CHECK: 0xca,0xc6,0x92,0x00 797subb %r17, 0, %r21 798! CHECK: 0x3a,0xc4,0x00,0x00 799subb %r17, 0x00001234, %r21 800! CHECK: 0x3a,0xc4,0x12,0x34 801subb %r17, 0x12340000, %r21 802! CHECK: 0x3a,0xc5,0x12,0x34 803subb.f %r17, 0, %r21 804! CHECK: 0x3a,0xc6,0x00,0x00 805subb.f %r17, 0x00001234, %r21 806! CHECK: 0x3a,0xc6,0x12,0x34 807subb.f %r17, 0x12340000, %r21 808! CHECK: 0x3a,0xc7,0x12,0x34 809subb %r17, %r18, %r21 810! CHECK: 0xca,0xc4,0x93,0x00 811subb.f %r17, %r18, %r21 812! CHECK: 0xca,0xc6,0x93,0x00 813xor %r17, 0, %r21 814! CHECK: 0x6a,0xc4,0x00,0x00 815xor %r17, 0x00001234, %r21 816! CHECK: 0x6a,0xc4,0x12,0x34 817xor %r17, 0x12340000, %r21 818! CHECK: 0x6a,0xc5,0x12,0x34 819xor.f %r17, 0, %r21 820! CHECK: 0x6a,0xc6,0x00,0x00 821xor.f %r17, 0x00001234, %r21 822! CHECK: 0x6a,0xc6,0x12,0x34 823xor.f %r17, 0x12340000, %r21 824! CHECK: 0x6a,0xc7,0x12,0x34 825xor %r17, %r18, %r21 826! CHECK: 0xca,0xc4,0x96,0x00 827xor.f %r17, %r18, %r21 828! CHECK: 0xca,0xc6,0x96,0x00 829sel.ne %r9, %r15, %r12 830! CHECK: 0xc6,0x24,0x7f,0x03 831sel.gt %r9, %r15, %r12 832! CHECK: 0xc6,0x24,0x7f,0x07 833xor.lt %r17, %r18, %r21 834! CHECK: 0xca,0xc5,0x96,0x06 835xor.f.eq %r17, %r18, %r21 836! CHECK: 0xca,0xc7,0x96,0x03 837add.ge %r13, %r14, %r18 838! CHECK: 0xc9,0x34,0x70,0x06 839spl %r19 840! CHECK: 0xea,0x4c,0x00,0x02 841bt 0x1234 842! CHECK: 0xe0,0x00,0x12,0x34 843sel.t %r9, %r15, %r12 844! CHECK: 0xc6,0x24,0x7f,0x00 845sel.f %r9, %r15, %r12 846! CHECK: 0xc6,0x25,0x7f,0x00 847sel.ugt %r9, %r15, %r12 848! CHECK: 0xc6,0x24,0x7f,0x01 849sel.ule %r9, %r15, %r12 850! CHECK: 0xc6,0x25,0x7f,0x01 851sel.ult %r9, %r15, %r12 852! CHECK: 0xc6,0x24,0x7f,0x02 853sel.uge %r9, %r15, %r12 854! CHECK: 0xc6,0x25,0x7f,0x02 855sel.ne %r9, %r15, %r12 856! CHECK: 0xc6,0x24,0x7f,0x03 857sel.eq %r9, %r15, %r12 858! CHECK: 0xc6,0x25,0x7f,0x03 859sel.vc %r9, %r15, %r12 860! CHECK: 0xc6,0x24,0x7f,0x04 861sel.vs %r9, %r15, %r12 862! CHECK: 0xc6,0x25,0x7f,0x04 863sel.pl %r9, %r15, %r12 864! CHECK: 0xc6,0x24,0x7f,0x05 865sel.mi %r9, %r15, %r12 866! CHECK: 0xc6,0x25,0x7f,0x05 867sel.ge %r9, %r15, %r12 868! CHECK: 0xc6,0x24,0x7f,0x06 869sel.lt %r9, %r15, %r12 870! CHECK: 0xc6,0x25,0x7f,0x06 871sel.gt %r9, %r15, %r12 872! CHECK: 0xc6,0x24,0x7f,0x07 873sel.le %r9, %r15, %r12 874! CHECK: 0xc6,0x25,0x7f,0x07 875trailz %r15, %r12 876! CHECK: 0xd6,0x3c,0x00,0x03 877