Convert Endian

Submission Date: 2024/9/22 20:04:04
Status: Accepted
Author: ryotakata
Lines: 18

VSM

imm ui"24" $r16/1000 imm ui"8" $r17/1000 imm ui"24" $r18/1000 imm ui"8" $r19/1000 imm ui"0xFF000000" $r20/1000 imm ui"0x00FF0000" $r21/1000 imm ui"0x0000FF00" $r22/1000 imm ui"0x000000FF" $r23/1000 ibsl $m0 $r[16,17,18,19] $nowrite iand $aluf $r[20,21,22,23] $r[0,1,2,3] $s[0,1,2,3] ibsl $m1 $r[16,17,18,19] $nowrite iand $aluf $r[20,21,22,23] $r[4,5,6,7] $s[4,5,6,7] # nop nop iadd $r[0,1,2,3] $s[1,2,3,0] $r[0,1,2,3] $s[0,1,2,3] iadd $r[4,5,6,7] $s[5,6,7,4] $r[4,5,6,7] $s[4,5,6,7] nop iadd $r[0,1,2,3] $s[2,3,0,1] $r[0,1,2,3] $s[0,1,2,3] $n1/1000 iadd $r[4,5,6,7] $s[6,7,4,5] $r[4,5,6,7] $s[4,5,6,7] $n0/1000 d getf $lr0n0c0b0m0p0 1 d getf $lr2n0c0b0m0p0 1 d getf $lr4n0c0b0m0p0 1 d getf $lr6n0c0b0m0p0 1 d getf $lm0n0c0b0m0p0 1 d getf $ls0n0c0b0m0p0 1 d getf $ls2n0c0b0m0p0 1 d getf $ls4n0c0b0m0p0 1 d getf $ls6n0c0b0m0p0 1

Standard Output

ACCEPTED!! score=18 j=18 m=0 bytes=821

Standard Error

------------------- vsm -------------------- # ======= In(0): ((4_PE:1))@LM0 / ULong ======= d set $lm0p0 1 5FE1DC66CBEA3DB3 # values=[6909045637428952499] / ULong @[0] d set $lm0p1 1 F362035C2EF5950E # values=[17537583593393853710] / ULong @[1] d set $lm0p2 1 BB63F46AC799D447 # values=[13502904847239337031] / ULong @[2] d set $lm0p3 1 9941AEBC98CB2C14 # values=[11043299886329703444] / ULong @[3] imm ui"24" $r16/1000 imm ui"8" $r17/1000 imm ui"24" $r18/1000 imm ui"8" $r19/1000 imm ui"0xFF000000" $r20/1000 imm ui"0x00FF0000" $r21/1000 imm ui"0x0000FF00" $r22/1000 imm ui"0x000000FF" $r23/1000 ibsl $m0 $r[16,17,18,19] $nowrite iand $aluf $r[20,21,22,23] $r[0,1,2,3] $s[0,1,2,3] ibsl $m1 $r[16,17,18,19] $nowrite iand $aluf $r[20,21,22,23] $r[4,5,6,7] $s[4,5,6,7] # nop nop iadd $r[0,1,2,3] $s[1,2,3,0] $r[0,1,2,3] $s[0,1,2,3] iadd $r[4,5,6,7] $s[5,6,7,4] $r[4,5,6,7] $s[4,5,6,7] nop iadd $r[0,1,2,3] $s[2,3,0,1] $r[0,1,2,3] $s[0,1,2,3] $n1/1000 iadd $r[4,5,6,7] $s[6,7,4,5] $r[4,5,6,7] $s[4,5,6,7] $n0/1000 d getf $lr0n0c0b0m0p0 1 d getf $lr2n0c0b0m0p0 1 d getf $lr4n0c0b0m0p0 1 d getf $lr6n0c0b0m0p0 1 d getf $lm0n0c0b0m0p0 1 d getf $ls0n0c0b0m0p0 1 d getf $ls2n0c0b0m0p0 1 d getf $ls4n0c0b0m0p0 1 d getf $ls6n0c0b0m0p0 1 # ======= Out(0): ((4_PE:1))@LM1 / ULong ======= d getd $ln0n0c0b0m0p0 1 # expect=[12915737465693462879] / ULong @[0] d getd $ln0n0c0b0m0p1 1 # expect=[1051015667521905395] / ULong @[1] d getd $ln0n0c0b0m0p2 1 # expect=[5175930953527485371] / ULong @[2] d getd $ln0n0c0b0m0p3 1 # expect=[1453760636594831769] / ULong @[3] ------------------- asm -------------------- j 011100001000000000000000010100001000000010000000000000000000000100000000000000000000011000000000000000000000000000000000000000000000000011111111100111110000000000000000000000000000000000000000000111000000000000000000000000000000001100000000000000000010000000000000000000000000000000000000011000000000000000000010000000000000000000000000000000000000011000000000000000000010000000000000000000000000000000000000011000000000000000 j 011100001000000000000000010100001000100010000000000000000000000100000000000000000000001000000000000000000000000000000000000000000000000011111111100111110000000000000000000000000000000000000000000111000000000000000000000000000000001100000000000000000010001000000000000000000000000000000000001000000000000000000010001000000000000000000000000000000000001000000000000000000010001000000000000000000000000000000000001000000000000000 j 011100001000000000000000010100001001000010000000000000000000000100000000000000000000011000000000000000000000000000000000000000000000000011111111100111110000000000000000000000000000000000000000000111000000000000000000000000000000001100000000000000000010010000000000000000000000000000000000011000000000000000000010010000000000000000000000000000000000011000000000000000000010010000000000000000000000000000000000011000000000000000 j 011100001000000000000000010100001001100010000000000000000000000100000000000000000000001000000000000000000000000000000000000000000000000011111111100111110000000000000000000000000000000000000000000111000000000000000000000000000000001100000000000000000010011000000000000000000000000000000000001000000000000000000010011000000000000000000000000000000000001000000000000000000010011000000000000000000000000000000000001000000000000000 j 011100001000000000000000010100001010000010000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000011111111111111110111111000000000000000000000000000000000000111000000000000000000000000000000001100000000000000000010100000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000000000000000000000000 j 011100001000000000000000010100001010100010000000000000000000000100000000000111000000000000110000000000000000000000000000000000000000000011111111100111110000000111000000000000000000000000000000000111000000000000000000000000000000001100000000000000000010101000000000000000000000000000000000000000000000000000000010101000000000000000000000000000000000000000000000000000000010101000000000000000000000000000000000000000000000000000 j 011100001000000000000000010100001011000010000000000000000000000100000000000000111100000000001111000000000000000000000000000000000000000011111111100111110000000000000000000000000000000000000000000111000000000000000000000000000000001100000000000000000010110000000000000000000000000000111100000000000000000000000010110000000000000000000000000000111100000000000000000000000010110000000000000000000000000000111100000000000000000000 j 011100001000000000000000010100001011100010000000000000000000000100000000000000000011111111000000000000000000000000000000000000000000000011111111100111110000000000000000000000000000000000000000000111000000000000000000000000000000001100000000000000000010111000000000000000000000000000000011111111000000000000000010111000000000000000000000000000000011111111000000000000000010111000000000000000000000000000000011111111000000000000 j 010000000000000000000000000000000000001000000100000000000000000100000000000000000000000000000000000000000000000000000000000000000000000011111111101011010000011000000000000000000000000000000000000111000000000000000000000000000000001100000000000000000000000000010001000000000000000000000000000000000000000000000000000000010010000000000000000000000000000000000000000000000000000000010011000000000000000000000000000000000000000000 j 010000000000000000000000010100000000000000000101001010000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111101001010001100000000000000000000000000000000000000111000000000000000000000000000000001100000000000000000000001000010101000000001000000000000000000000000000000000000000010000010110000000010000000000000000000000000000000000000000011000010111000000011000000000000000000000000000000000 j 010000000000000000000000000000000000001000000100000000000000000100000000000000000000000001000000000000000000000000000000000000000000000011111111101011010000011000000000000000000000000000000000000111000000000000000000000000000000001100000000000000000000000000010001000000000000000000000000000001000000000000000000000000010010000000000000000000000000000001000000000000000000000000010011000000000000000000000000000001000000000000 j 010000000000000000000000010100000010000000000101001010000001000000000000000000000000000000000000000000000000000000000000000000000000000011111111101001010001100000000000000000000000000000000000000111000000000000000000000000000000001100000000000000000000101000010101000000101000000000000000000000000000000000000000110000010110000000110000000000000000000000000000000000000000111000010111000000111000000000000000000000000000000000 j 000000000000000000000000000000000000001010000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000011111111111000000001000111000000000000000000000000000000000111000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 j 010000000000000000000000010100000000000000000000001010000000000000000000001000000000000000000000000000000000000000000000000000000000000011111111101000000000000001000000000000000000000000000000000111000000000000000000000000000000001100000000000000000000001000000001000000001000000010000000000000000000000000000000010000000010000000010000000011000000000000000000000000000000011000000011000000011000000000000000000000000000000000 j 010000000000000000000000010100000010000000000001001010000001000000000000101000000000000000000000000000000000000000000000000000000000000011111111101000000000000001000000000000000000000000000000000111000000000000000000000000000000001100000000000000000000101000000101000000101000000110000000000000000000000000000000110000000110000000110000000111000000000000000000000000000000111000000111000000111000000100000000000000000000000000 j 000000000000000000000000000000000000001010000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000011111111111000000001000111000000000000000000000000000000000111000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 j 011100000000100000000000010100000000000000000000001010000000000000000000010000000000000000000000101000000000001000000000000000000000000011111111101000000000000001000000000000000000000000000000000111000000000000000000000000000000001100000000000000000000001000000001000000001000000011000000000000000000000001000000010000000010000000010000000000000000000000000000000001000000011000000011000000011000000001000000000000000000000001 j 011100000000100000000000010100000010000000000001001010000001000000000000110000000000000000000000101000000000000000000000000000000000000011111111101000000000000001000000000000000000000000000000000111000000000000000000000000000000001100000000000000000000101000000101000000101000000111000000000000000000000000000000110000000110000000110000000100000000000000000000000000000000111000000111000000111000000101000000000000000000000000 d getf $lr0n0c0b0m0p0 1 d getf $lr2n0c0b0m0p0 1 d getf $lr4n0c0b0m0p0 1 d getf $lr6n0c0b0m0p0 1 d getf $lm0n0c0b0m0p0 1 d getf $ls0n0c0b0m0p0 1 d getf $ls2n0c0b0m0p0 1 d getf $ls4n0c0b0m0p0 1 d getf $ls6n0c0b0m0p0 1 ------------------- emu -------------------- DEBUG-LM1(n0c0b0m0p0,0):(-7.27246e-62) (0xb33deacb66dce15f) #d getd $ln0n0c0b0m0p0 1 # expect=[12915737465693462879] / ULong @[0] DEBUG-LM1(n0c0b0m0p1,0):(2.10752e-238) (0x0e95f52e5c0362f3) #d getd $ln0n0c0b0m0p1 1 # expect=[1051015667521905395] / ULong @[1] DEBUG-LM1(n0c0b0m0p2,0):(1.09532e+38) (0x47d499c76af463bb) #d getd $ln0n0c0b0m0p2 1 # expect=[5175930953527485371] / ULong @[2] DEBUG-LM1(n0c0b0m0p3,0):(1.7107e-211) (0x142ccb98bcae4199) #d getd $ln0n0c0b0m0p3 1 # expect=[1453760636594831769] / ULong @[3] ------------------- inputs -------------------- [ 6909045637428952499, 17537583593393853710, 13502904847239337031, 11043299886329703444] ------------------- expect -------------------- [12915737465693462879, 1051015667521905395, 5175930953527485371, 1453760636594831769] ------------------- actual -------------------- [12915737465693462879, 1051015667521905395, 5175930953527485371, 1453760636594831769] ------------------- check result --------------------