{"action":"opened","issue":{"url":"https://api.github.com/repos/CTSRD-CHERI/llvm/issues/162","repository_url":"https://api.github.com/repos/CTSRD-CHERI/llvm","labels_url":"https://api.github.com/repos/CTSRD-CHERI/llvm/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/CTSRD-CHERI/llvm/issues/162/comments","events_url":"https://api.github.com/repos/CTSRD-CHERI/llvm/issues/162/events","html_url":"https://github.com/CTSRD-CHERI/llvm/issues/162","id":154265554,"number":162,"title":"Immediate limit in cshwd not updated for BigImm","user":{"login":"hbcam","id":17888932,"avatar_url":"https://avatars.githubusercontent.com/u/17888932?v=3","gravatar_id":"","url":"https://api.github.com/users/hbcam","html_url":"https://github.com/hbcam","followers_url":"https://api.github.com/users/hbcam/followers","following_url":"https://api.github.com/users/hbcam/following{/other_user}","gists_url":"https://api.github.com/users/hbcam/gists{/gist_id}","starred_url":"https://api.github.com/users/hbcam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbcam/subscriptions","organizations_url":"https://api.github.com/users/hbcam/orgs","repos_url":"https://api.github.com/users/hbcam/repos","events_url":"https://api.github.com/users/hbcam/events{/privacy}","received_events_url":"https://api.github.com/users/hbcam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-11T15:00:33Z","updated_at":"2016-05-11T15:00:33Z","closed_at":null,"body":"As an example,\r\n`csd\t$at, $0,  128($c3)`\r\ngives \"immediate operand out of range\" ( https://github.com/CTSRD-CHERI/llvm/blob/master/lib/Target/Mips/AsmParser/MipsAsmParser.cpp#L1736  )\r\n\r\nBy setting 'int Max = 127*4;', it works fine (but this is not a good fix).\r\n\r\nHowever,  `csd\t$at, $0,  136($c3)` fails with \"invalid operand for instruction\".\r\nA workaround is to use `csd\t$at, $0,  17*8($c3)`."}}