You should see your GP if you think you might have IBS and have had symptoms for over 4 weeks. "They can check for IBS and do some tests to rule out other problems", the NHS state ...
IBS and some types of cancer can have similar symptoms with bloating being one of them ...